10.08.2012, 10:40
paycheck(playerid)
SetTimer("paycheck",10000,false);
this mistake, i made it very much when i started scripting.
If you only SetTimer, the timer does not know for which playerid to call the paycheck
delete the timer in OnPlayerSpawn, and add this:
this will call the function, with the players id
btw, same goes for all public functions, called with a timer, which requires a playerid or something else
SetTimer("paycheck",10000,false);
this mistake, i made it very much when i started scripting.
If you only SetTimer, the timer does not know for which playerid to call the paycheck
delete the timer in OnPlayerSpawn, and add this:
pawn Код:
SetTimerEx("paycheck",10000,false,"i",playerid);
btw, same goes for all public functions, called with a timer, which requires a playerid or something else