How to do this?
#5

Quote:
Originally Posted by MyName?
Quote:
Originally Posted by Etch ❽ H
Код:
OnPlayerConnect(playerid)
{
pStats[playerid][Level] = 0; // Level is just an example
return 1;
}
Nah I want to set all of them to 0 in once. Not with 50 lines.
You will need 50 lines then or use PVars which are reset automatically.

Quote:
Originally Posted by Cank
Quote:

for(new i=0; i<sizeof(pStats); i++) { pStats[playerid] = 0; }

simply use "i" instead of "playerid"
Fail
Reply


Messages In This Thread
How to do this? - by RSC_Quicker - 18.04.2010, 16:46
Re: How to do this? - by aircombat - 18.04.2010, 16:59
Re: How to do this? - by RSC_Quicker - 18.04.2010, 17:11
Re: How to do this? - by Cank - 18.04.2010, 17:31
Re: How to do this? - by Sergei - 18.04.2010, 17:32
Re: How to do this? - by RSC_Quicker - 19.04.2010, 19:57

Forum Jump:


Users browsing this thread: 1 Guest(s)