By the way, is "loopPlayers" a native Samp function, or is it a custom one? is it the same as using this?
for(new i = 0; i <= MAX_PLAYERS; i++)
{
// Your code here.
}
non-native. Custom to LW's.
It is virtually the same as that, however I think it's a macro as it includes the creation of the variable within it's definition - unless i is created beforehand? Something like:
#define loopPlayers(%0) for(new %0; %0 <= MAX_PLAYERS; %0++)
Try out on
PPG:
#include <a_samp>
#define loopPlayers(%0) for(new %0; %0 <= MAX_PLAYERS; %0++)
main () {
loopPlayers(i)
{
printf("%d", i);
}
// Use this or the server will run for 2 seconds and get killed
quit();
}
Anyways,
This was awesome with 150+ players, people would just randomly be like "uhh I didn't say that" haha. I remember myself being confused the first time this happened, t'was epic.