29.08.2009, 21:52
Hey everyone, I'm rather used to scripting in C++ at the moment, and I haven't scripted pawn in awhile, so I'm not sure as to what the issue is. Some reason, I keep getting this error:
Here:
When I get rid of both "sleep" and "burn" from the enumeration, everything compiles fine. When I change the names of the variables in the enumeration, it compiles fine, but with these names, it won't compile. I've tried placing a semi-colon after the closing bracket of the enumeration, but that fails to do anything. Any clue?
Код:
C:\Users\Casey\Desktop\samp02Xserver.win32\filterscripts\specialshots.pwn(10) : error 001: expected token: "-identifier-", but found "sleep"
Код:
enum ShotTypes { stun, sleep, burn } new Shots[MAX_PLAYERS][ShotTypes];