Hi all,
I found a tutorial on the community site here and followed it to the
letter when writing a script to add custom items to a player's inventory...
However, even when I copied the script and tried to use it as the tutorial
author had it written I keep getting an error when the script goes to
compile. I keep getting told that there is a variable defined without a type in
a line that has, from what I can tell, no variable in it what so ever.....
Anyone have any idea what I might be looking at here? Like I said,
even if I use the author's code verbatim, I get the same error on
post processing when exporting the new 'module'.... It goes to compile then
stops compiling the script with the above mentioned error....
Any help would be appreciated.
Thanks
adding items to player inventory not working....
Débuté par
Andromeda_43
, déc. 06 2009 06:15
#1
Posté 06 décembre 2009 - 06:15
#2
Posté 06 décembre 2009 - 06:57
Post your script please.
#3
Posté 06 décembre 2009 - 09:13
forgeting to use PLT_ befor a plot can give the error you are getting
WR_SetPlotFlag( PLT_MCGO_RANGER_ROBES_PLOT, MY_ITEM_CHECK_FLAG, TRUE );
WR_SetPlotFlag( PLT_MCGO_RANGER_ROBES_PLOT, MY_ITEM_CHECK_FLAG, TRUE );
#4
Posté 06 décembre 2009 - 09:19
Whenever I get that message I normally mistyped something. If you Typed WR_SetPlotFlah(); instead of WR_SetPlotFlag(); it will assume you are trying to define a variable as it doesn't recognize the function.
#5
Posté 07 décembre 2009 - 01:17
This happened to me and it ended up that my Plot Flag and items were in a completely different folder than my script.
But I'm new to this, and haven't used C in years... and have forgotten a ton.
But I'm new to this, and haven't used C in years... and have forgotten a ton.
Modifié par PapaSmurfer, 07 décembre 2009 - 01:18 .
#6
Posté 07 décembre 2009 - 09:25
If you want help with a compile error, you need to post the script and the error. We're not psychics.





Retour en haut






