Quote:
Originally Posted by Paulice
PHP Code:
for(new i = 0; i < GetMaxPlayers(); i++) // looping through connected players
GetPlayerPoolSize exists, use it (note: making it a plug n\' play script for any "SA-MP version" is not a valid excuse to not use the relatively new function)!
|
Use foreach instead of GetPlayerPoolSize
Quote:
Originally Posted by Paulice
PHP Code:
new speed; speed = GetPlayerSpeed(playerid);
Can you not do "new speed = GetPlayerSpeed(playerid);"?
|
That\'s a point less argument.
Quote:
Originally Posted by Xeon™
Yes i did heared of it. but in this case its constant. so there no need to wast more ms for a const var.
|
sizeof is an operator whose value is replaced by a constant (cell value) on compilation itself
Nice script