must be assigned to an array
#1

So this is my error:
pawn Код:
C:\Users\Justas\Desktop\TestServer\gamemodes\freeroam1.pwn(47) : error 006: must be assigned to an array
And these are at the top of the script:
pawn Код:
enum pInfo{
   playername[MAX_PLAYER_NAME],
   PLAYER_REGGED,
   PLAYER_LOGGED,
   PLAYER_PASS,
   PLAYER_ADMIN
}

new PlayerInfo[MAX_PLAYERS][pInfo];
And the line 47:
pawn Код:
PlayerInfo[playerid][PLAYER_REGGED]=1;
And i just can fix the problem by myself,help please
Reply
#2

Hmm correct me if I'm wrong but the code you posted is right and working (tested). Maybe you're mistaken in the line? :/
Reply
#3

nevermind,i changed the line to format(PlayerInfo[playerid][PLAYER_PASS],50,"%s",pass); and now it works.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)