Quote:
Originally Posted by RoBo
pawn Код:
new tick[MAX_PLAYERS];
OnPlayerUpdate(playerid) { if((GetTickCount() - tick[playerid]) > 1000) { tick[playerid] = GetTickCount(); //do stuff } return 1; }
No messing around with silly timers and loops.
|
So that stuff about OnPlayerUpdate using more CPU is a bunch of BS?