03.03.2015, 13:09
You guys are doing it wrong...
It returns the HIGHEST playerID not the amount of elements in the pool!
BUG: Error, this is the first time this has happened to me, I disabled a player race checkpoint and the map icon got removed but the checkpoint was kinda still there? http://puu.sh/gkCNx/f912e7b351.jpg
pawn Код:
GetObjectPoolSize()
{
for(new i = MAX_OBJECTS; i != 0; --i) {
if(IsValidObject(i)) {
return i;
}
}
return 0;
}
BUG: Error, this is the first time this has happened to me, I disabled a player race checkpoint and the map icon got removed but the checkpoint was kinda still there? http://puu.sh/gkCNx/f912e7b351.jpg