Player Array.. Set ALL!
#1

Hi.
Got a PlayerInfo enum looking like this:
pawn Код:
PlayerInfo[MAX_PLAYERS][pInfo]
How do I set all information at once in it? I tried this:

pawn Код:
PlayerInfo[playerid][pInfo] = 0;
But it doesn't work.
Reply
#2

pawn Код:
for(new i = 0; NAME_OF_ENUM:i < NAME_OF_ENUM; i++) PlayerInfo[playerid][NAME_OF_ENUM:i] = 0;
NAME_OF_ENUM is what is just directly after "enum".

pawn Код:
enum SOMETHING_HERE
{
    //
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)