Okay this is my first topic since most of the time I can find people with the same problem or close enough by surfing through other peoples topics.
obj
Grey_stalk
icon='Obj.dmi'
icon_state="Grey_stalk"
GT=0
GC()
if(PU==1)
icon_state="Grey_stalk_picked"
it seems im getting a duplicate definition error for the PU var and the number 1 now im a fairly inexperienced coder but ive never run into this problem before. and the only place the PU variable is located is in this line of code.
I have gotten the duplicate definition error before just not for this particular type of thing.
obj
var
BL=0
EH=0
GD=0
Es=0
As=0
Ds=0
Hs=0
Gs=0
DG=0
EN=0
K1=0
ME=0
HP=0
PK=0
GT=0
PU=0
Any help would be appreciated and again forgive me for my stupidity XD
ID:139988
Jun 24 2010, 7:28 pm (Edited on Jun 24 2010, 7:48 pm)
|
|
In response to Claytonctc
|
|
The "duplicate definition" error was a mistake on the compiler's part. The correct error was "instruction not allowed here", on the == operation.
|
In response to Garthor
|
|
Thanks
|
obj
Grey_stalk
icon='Obj.dmi'
icon_state="Grey_stalk"
GT=0
GC()
if(GT==1)
icon_state="Grey_stalk_picked"