30.08.2012, 15:15
(
Последний раз редактировалось Johnson_Brooks; 30.08.2012 в 16:15.
)
I've request a score timer in the script request thread #5,it seemed to be working but it doesn't.
Here's the code:
Whats really wrong?
Here's the code:
pawn Код:
#include <a_samp>
new ScoreTimer;
public OnPlayerUpdate(playerid)
{
new time = gettime();
if(ScoreTimer < time)
{
ScoreTimer++;
}
if(ScoreTimer == 60)
{
new score = GetPlayerScore(playerid);
SetPlayerScore(playerid, score+1);
ScoreTimer = 0;
}
return 1;
}