Only for ID 0
#5

Quote:
Originally Posted by DiDok
Post whole code, including for and returns
There aren't more code at the moment, i am just creating this, and i wanted to check. When I connect to server(ID 0) and type stats, it shows Level = 1. When I type other player id: "stats 1", shows level 0.

Quote:
Originally Posted by .:NoZer0:.
maybe something as this:
pawn Код:
new Level[MAX_PLAYERS];

public OnGameModeInit()
{
  for(new i=0; i<MAX_PLAYERS; i++) Level[i] = 1;
}
you can't set the value of array in the way you did, you need to create a loop, and set every slot of the array to the value.
Thanks.
Reply


Messages In This Thread
Only for ID 0 - by arnutisz - 21.06.2009, 07:48
Re: Only for ID 0 - by woot - 21.06.2009, 08:26
Re: Only for ID 0 - by DiDok - 21.06.2009, 08:29
Re: Only for ID 0 - by [nl]daplayer - 21.06.2009, 08:38
Re: Only for ID 0 - by arnutisz - 21.06.2009, 08:42
Re: Only for ID 0 - by arnutisz - 21.06.2009, 08:47
Re: Only for ID 0 - by [nl]daplayer - 21.06.2009, 08:51
Re: Only for ID 0 - by woot - 21.06.2009, 08:55
Re: Only for ID 0 - by arnutisz - 21.06.2009, 09:09
Re: Only for ID 0 - by Donny_k - 21.06.2009, 12:50

Forum Jump:


Users browsing this thread: 1 Guest(s)