Error in my enum? Everything seems to be normal - 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)
+--- Thread: Error in my enum? Everything seems to be normal (
/showthread.php?tid=417734)
Error in my enum? Everything seems to be normal -
Goldino - 22.02.2013
Hey guys, I don't know why it's giving me an error here. I haven't changed anything in the enum. I don't see the problem. Look here is my error:
Код:
C:\DOCUME~1\DANNY~1.YOU\MYDOCU~1\LOSSAN~1\GAMEMO~1\Testing.pwn(97) : error 001: expected token: ";", but found "enum"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
And my enum:
Код:
//-----[ENUMS]-----
enum PlayerInfo
{
Pass[129], //User's password
Adminlevel, //User's admin level
VIPlevel, //User's vip level
Money, //User's money
Scores, //User's scores
Kills, //User's kills
Deaths, //User's deaths
Helperlevel, //Users Helper Level
Warnings, // Users total warnings
}
new pInfo[MAX_PLAYERS][PlayerInfo];
Whats wrong with it? Please help
Re: Error in my enum? Everything seems to be normal - Patrick - 22.02.2013
Try this
pawn Код:
enum PlayerInfo
{
Pass[129], //User's password
Adminlevel, //User's admin level
VIPlevel, //User's vip level
Money, //User's money
Scores, //User's scores
Kills, //User's kills
Deaths, //User's deaths
Helperlevel, //Users Helper Level
Warnings // Users total warnings
}
new pInfo[MAX_PLAYERS][PlayerInfo];
you should not put a comma at the end
,