26.09.2010, 08:44
(
Последний раз редактировалось wups; 26.09.2010 в 19:04.
)
Loop From Top!
This code is a regular loop, which loops from top(e.g. starts from 100 and goes down to 1.)
Example:
I'm sure you can find it usefull
This code is a regular loop, which loops from top(e.g. starts from 100 and goes down to 1.)
pawn Код:
#define LoopFromTop(%1,%2) \
for(new %1=%2;%1>0;%1--) // %1 is a symbol(ex. playerid), %2 is max(ex. MAX_PLAYERS)
pawn Код:
stock Allowance()
{
LoopFromTop(number,MAX_PLAYERS)
{
printf("%i",number); // will print 200,199,198...
}
return 1;
}