Undefined Symbol
#1

Hello again, I am getting Undefined Symbol error on (PlayerInfo and [playerid] how can i fix this?

Код:
stock AdminLevelToName(playerid)
{
        new admin[128];
        switch(PlayerInfo[playerid][pAdminLevel])
	{

        case 1:
        {
            admin = "Moderator";
        }
        case 2:
        {
            admin = "Junior Admin";
        }
        case 3:
        {
            admin = "General Admin";
        }
        case 4:
        {
            admin = "Senior Admin";
        }
        case 1337:
        {
            admin = "Elite Admin";
        }
        case 1338:
        {
            admin = "Head Admin";
        }
        case 99999:
        {
            admin = "Server Owner";
        }
    }
    return admin;
}
Reply
#2

send us the top of the script

the enum
Reply
#3

pawn Код:
enum pInfo
{
    pAdminLevel
}
new PlayerInfo[MAX_PLAYERS][pInfo];
Add it on top of your script
Reply
#4

Alright, thank you for the help.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)