Aller au contenu

Photo

adding items to player inventory not working....


  • Veuillez vous connecter pour répondre
5 réponses à ce sujet

#1
Andromeda_43

Andromeda_43
  • Members
  • 4 messages
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

#2
Axe_Murderer

Axe_Murderer
  • Members
  • 279 messages
Post your script please.

#3
GeirOve

GeirOve
  • Members
  • 2 messages
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 );

#4
Looy

Looy
  • Members
  • 388 messages
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
PapaSmurfer

PapaSmurfer
  • Members
  • 33 messages
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.

Modifié par PapaSmurfer, 07 décembre 2009 - 01:18 .


#6
FalloutBoy

FalloutBoy
  • Members
  • 580 messages
If you want help with a compile error, you need to post the script and the error. We're not psychics.