looping trough array
#1

pawn Код:
enum PlayerInfo
{
    id,
    Money,
    OtherStuff
}
new PInfo[MAX_PLAYERS][PlayerInfo];
pawn Код:
for(new i; i < sizeof(PInfo); i++)
    {
        PInfo[playerid][i]=0;
    }
What am i doing wrong ?
Reply
#2

enum doesnt work that way, you cannot make a loop in that method, you are trying to.
Reply
#3

Simple reset procedure:
PHP код:
static const cEmptyInfo[PlayerInfo];
PInfo[playerid] = cEmptyInfo
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)