Undefined Symbol PlayerInfo + Rep
#1

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

make sure your code like this

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

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

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

Problem Fixed by me
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)