SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 26/07/2009, 03:14 PM   #1
Jakku
High-roller
 
Jakku's Avatar
 
Join Date: Apr 2009
Location: Heinola, Finland
Posts: 1,354
Reputation: 157
Default Timer Problem

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?
__________________
Jakku is offline  
Old 26/07/2009, 03:16 PM   #2
SpiderPork
Gangsta
 
Join Date: Feb 2009
Posts: 624
Reputation: 1
Default Re: Timer Problem

SetTimerEx
SpiderPork is offline  
Old 26/07/2009, 03:24 PM   #3
Jakku
High-roller
 
Jakku's Avatar
 
Join Date: Apr 2009
Location: Heinola, Finland
Posts: 1,354
Reputation: 157
Default Re: Timer Problem

Quote:
Originally Posted by SpiderPork
SetTimerEx
Really?
__________________
Jakku is offline  
Old 26/07/2009, 05:20 PM   #4
SpiderPork
Gangsta
 
Join Date: Feb 2009
Posts: 624
Reputation: 1
Default Re: Timer Problem

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

SetTimerEx("ScoreSystem", 1800000, 0, "i", playerid);
SpiderPork is offline  
Old 26/07/2009, 06:16 PM   #5
Jakku
High-roller
 
Jakku's Avatar
 
Join Date: Apr 2009
Location: Heinola, Finland
Posts: 1,354
Reputation: 157
Default Re: Timer Problem

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
__________________
Jakku is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Timer problem gangstajoe Help Archive 2 06/03/2010 08:22 PM
Timer does problem again deather Help Archive 0 27/01/2010 12:55 PM
timer problem sandisk125 Help Archive 2 19/08/2009 09:56 PM


All times are GMT. The time now is 07:05 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.