10.01.2011, 19:18
You need to use SetTimerEx instead of SetTimer to tell to the public function the player id.
Use this for more info:
wiki.sa-mp.com/wiki/SetTimerEx
Ah, and you don't need a variable to store the player's score. Use this optimization:
pawn Код:
SetTimerEx("CarEjecter", 1000, 0, "i", playerid);
wiki.sa-mp.com/wiki/SetTimerEx
Ah, and you don't need a variable to store the player's score. Use this optimization:
pawn Код:
if(GetPlayerScore(playerid) > 50)
// stuff here