PDA

View Full Version : Undefined Symbol


Laure
03/10/2012, 12:11 PM
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;
}

BiosMarcel
03/10/2012, 12:15 PM
send us the top of the script

the enum

doreto
03/10/2012, 12:16 PM
enum pInfo
{
pAdminLevel
}
new PlayerInfo[MAX_PLAYERS][pInfo];

Add it on top of your script

Laure
03/10/2012, 12:18 PM
Alright, thank you for the help.