Timer Problem
#1

I have a problem with timer. My timer only works for ID 0.


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);
SetTimer is under onplayerconnect, and this only works for ID 0, how I can fix this it works for everyone?
Reply
#2

SetTimerEx
Reply
#3

Quote:
Originally Posted by SpiderPork
SetTimerEx
Really?
Reply
#4

Quote:
Originally Posted by Jakku
Quote:
Originally Posted by SpiderPork
SetTimerEx
Really?
Really.

SetTimerEx("ScoreSystem", 1800000, 0, "i", playerid);
Reply
#5

Quote:
Originally Posted by SpiderPork
Quote:
Originally Posted by Jakku
Quote:
Originally Posted by SpiderPork
SetTimerEx
Really?
Really.

SetTimerEx("ScoreSystem", 1800000, 0, "i", playerid);
Seems that doesn't repeat, right? If it doesn't it is good
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)