Undefined Symbol - 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: Undefined Symbol (
/showthread.php?tid=382421)
Undefined Symbol -
Laure - 03.10.2012
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;
}
AW: Undefined Symbol -
BiosMarcel - 03.10.2012
send us the top of the script
the enum
Re: Undefined Symbol -
doreto - 03.10.2012
pawn Код:
enum pInfo
{
pAdminLevel
}
new PlayerInfo[MAX_PLAYERS][pInfo];
Add it on top of your script
Re: Undefined Symbol -
Laure - 03.10.2012
Alright, thank you for the help.