05.09.2010, 13:31
Ok, heres one of the examples at the wiki:
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?
pawn Код:
for (new i = 0; i < 3; i++)
{
static
j = 1;
printf("%d", j);
j++;
}
Explaining enough?