26.07.2009, 15:14
I have a problem with timer. My timer only works for ID 0.
Here:
SetTimer is under onplayerconnect, and this only works for ID 0, how I can fix this it works for everyone?
Here:
pawn Code:
forward ScoreSystem(playerid);
public ScoreSystem(playerid)
{
SendClientMessage(playerid, COLOR_YELLOW, "Congratulations! Your score has increased by one level. You've earned a cash price of 15000$");
GivePlayerMoney(playerid, 15000);
SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
dUserSetINT(PlayerName(playerid)).("score",GetPlayerScore(playerid));
}
SetTimer("ScoreSystem", 1800000, false);