Error in my enum? Everything seems to be normal
#1

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
Reply
#2

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 ,
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)