[Question]Variables
#1

Can someone tell me what's the difference between:

Код:
pinfo[MAX_PLAYERS][3];

OnPlayerConnect(playerid)
{
pinfo[playerid][0] = 0;
pinfo[playerid][1] = 0;
pinfo[playerid][2] = 0;
return 1;
}
and

Код:
pinfo[MAX_PLAYERS][3];

OnPlayerConnect(playerid)
{
for(new x = 0; x < 3; x++)
{
pinfo[playerid][x] = 0;
}
return 1;
}
which one is better?
Reply


Messages In This Thread
[Question]Variables - by b.rock - 26.11.2011, 02:23
Re: [Question]Variables - by Rob_Maate - 26.11.2011, 02:35
Re: [Question]Variables - by MP2 - 26.11.2011, 04:07

Forum Jump:


Users browsing this thread: 1 Guest(s)