SA-MP Forums Archive
need help with enum - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: need help with enum (/showthread.php?tid=260437)



need help with enum - trapped1 - 08.06.2011

Код:
 error 001: expected token: ";", but found "enum"
Код:
enum pInfo
{
	 AdminLevel,
	 eadmin,
	 Respect,
	 aHouse,
	 Job,
	 Bussines,
         Cash,
};
thank you for your reply...


Re: need help with enum - Madsen - 08.06.2011

the error is before "enum" so you need a ";" on the line before "enum pInfo" this line if you understand


Re: need help with enum - trapped1 - 08.06.2011

thanks mate you helped me out... just 2 nights didn't sleep : D


Re: need help with enum - iGetty - 08.06.2011

Couldn't it be that the last thing on the Enum called "Cash" it shouldn't have a "," there either?


Re: need help with enum - PGTips - 08.06.2011

Quote:
Originally Posted by getty154
Посмотреть сообщение
Couldn't it be that the last thing on the Enum called "Cash" it shouldn't have a "," there either?
That wouldnt be the error as the found thing is enum meaning its before that as somone posted earlyer that would give him a warning but thats about all it would give him


Re: need help with enum - Ricop522 - 09.06.2011

enum pInfo
{
AdminLevel,
eadmin,
Respect,
aHouse,
Job,
Bussines,
Cash
};


Re: need help with enum - Mean - 09.06.2011

Quote:
Originally Posted by PGTips
Посмотреть сообщение
That wouldnt be the error as the found thing is enum meaning its before that as somone posted earlyer that would give him a warning but thats about all it would give him
No, it would actually give him an error! Remove that "," and it will work.