07.08.2013, 09:21
Hello,
I want to know what is prefered.
Lets take a example,
I want to update player's score by player's money.
So here is the code -
now here is the quastion ,
what's preferd - doing this check on Timer that will run for 1 second all the time,
Or just put that code inside OnPlayerUpdate public ?
Thanks.
I want to know what is prefered.
Lets take a example,
I want to update player's score by player's money.
So here is the code -
Код:
new pMoney = GetPlayerMoney(playerid); new pScore = GetPlayerScore(playerid); if(pMoney != pScore)SetPlayerScore(playerid,pMoney);
what's preferd - doing this check on Timer that will run for 1 second all the time,
Or just put that code inside OnPlayerUpdate public ?
Thanks.