Enumeration...
#1

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:
Код:
C:\Users\Casey\Desktop\samp02Xserver.win32\filterscripts\specialshots.pwn(10) : error 001: expected token: "-identifier-", but found "sleep"
Here:
Код:
enum ShotTypes
{
	stun,
	sleep,
	burn
}

new Shots[MAX_PLAYERS][ShotTypes];
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?
Reply


Messages In This Thread
Enumeration... - by Tannz0rz - 29.08.2009, 21:52
Re: Enumeration... - by cyber_punk - 29.08.2009, 22:08
Re: Enumeration... - by Tannz0rz - 29.08.2009, 22:11
Re: Enumeration... - by Correlli - 29.08.2009, 22:13
Re: Enumeration... - by cyber_punk - 29.08.2009, 22:14
Re: Enumeration... - by Correlli - 29.08.2009, 22:15

Forum Jump:


Users browsing this thread: 1 Guest(s)