SA-MP Forums Archive
Undefined Symbol PlayerInfo + Rep - 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 PlayerInfo + Rep (/showthread.php?tid=545428)



Undefined Symbol PlayerInfo + Rep - osman2571 - 08.11.2014

I make something in public,and i cant make in public
Код:
 if(PlayerInfo[playerid][Admin] == 6) return 1;
it's say Undefined symbol PlayerInfo,but i have enum with Admin but not work..
I don't know what is it,i try to define with
Код:
new PlayerInfo[MAX_PLAYERS];
or
Код:
new PlayerInfo[MAX_PLAYERS][pInfo];
but don't work..
Sorry for my bad english xD


Re: Undefined Symbol PlayerInfo + Rep - rickisme - 08.11.2014

make sure your code like this

pawn Код:
enum pInfo
{
    Admin
};
new PlayerInfo[MAX_PLAYERS][pInfo];



Re: Undefined Symbol PlayerInfo + Rep - kloning1 - 08.11.2014

pawn Код:
enum pInfo
{
    pAdmin
};
new PlayerInfo[MAX_PLAYERS+1][pInfo];



Re: Undefined Symbol PlayerInfo + Rep - Dziugsas - 08.11.2014

Do you define it at the top of youe script? new PlayerInfo[MAX_PLAYERS][pInfo];


Re: Undefined Symbol PlayerInfo + Rep - osman2571 - 08.11.2014

Problem Fixed by me