static gTeam[MAX_PLAYERS]?
#4

Ok, heres one of the examples at the wiki:

pawn Код:
for (new i = 0; i < 3; i++)
{
    static
        j = 1;
    printf("%d", j);
    j++;
}
That would print 1,2,3 as it loops the FOR 3 times. why it wont just print 1,1,1 as a local var would is cause it remembers its old value.

Explaining enough?
Reply


Messages In This Thread
static gTeam[MAX_PLAYERS]? - by Jochemd - 05.09.2010, 13:20
Re: static gTeam[MAX_PLAYERS]? - by Cameltoe - 05.09.2010, 13:24
Re: static gTeam[MAX_PLAYERS]? - by Jochemd - 05.09.2010, 13:26
Re: static gTeam[MAX_PLAYERS]? - by Cameltoe - 05.09.2010, 13:31
Re: static gTeam[MAX_PLAYERS]? - by [XST]O_x - 05.09.2010, 13:42
Re: static gTeam[MAX_PLAYERS]? - by Calgon - 05.09.2010, 13:49
Re: static gTeam[MAX_PLAYERS]? - by Jochemd - 05.09.2010, 21:20
Re: static gTeam[MAX_PLAYERS]? - by Vince - 05.09.2010, 21:25
Re: static gTeam[MAX_PLAYERS]? - by Jochemd - 05.09.2010, 21:35
Re: static gTeam[MAX_PLAYERS]? - by Jay_ - 05.09.2010, 21:41

Forum Jump:


Users browsing this thread: 1 Guest(s)