Timer
#1

"Brain stopped working...
Check the log for more info"

Well I need your help guys.
I have textdraw
PHP код:
TimerTD[playerid][0] = CreatePlayerTextDraw(playerid526.000305246.746658"Time_left:");
    
PlayerTextDrawLetterSize(playeridTimerTD[playerid][0], 0.2946661.490489);
    
PlayerTextDrawTextSize(playeridTimerTD[playerid][0], 647.0000000.000000);
    
PlayerTextDrawAlignment(playeridTimerTD[playerid][0], 1);
    
PlayerTextDrawColor(playeridTimerTD[playerid][0], -1);
    
PlayerTextDrawUseBox(playeridTimerTD[playerid][0], 1);
    
PlayerTextDrawBoxColor(playeridTimerTD[playerid][0], 255);
    
PlayerTextDrawSetShadow(playeridTimerTD[playerid][0], 0);
    
PlayerTextDrawSetOutline(playeridTimerTD[playerid][0], 0);
    
PlayerTextDrawBackgroundColor(playeridTimerTD[playerid][0], 255);
    
PlayerTextDrawFont(playeridTimerTD[playerid][0], 2);
    
PlayerTextDrawSetProportional(playeridTimerTD[playerid][0], 1);
    
PlayerTextDrawSetShadow(playeridTimerTD[playerid][0], 0);
    
TimerTD[playerid][1] = CreatePlayerTextDraw(playerid592.222290246.746673"100_sec");
    
PlayerTextDrawLetterSize(playeridTimerTD[playerid][1], 0.2946661.490489);
    
PlayerTextDrawAlignment(playeridTimerTD[playerid][1], 1);
    
PlayerTextDrawColor(playeridTimerTD[playerid][1], -1);
    
PlayerTextDrawSetShadow(playeridTimerTD[playerid][1], 0);
    
PlayerTextDrawSetOutline(playeridTimerTD[playerid][1], 0);
    
PlayerTextDrawBackgroundColor(playeridTimerTD[playerid][1], 255);
    
PlayerTextDrawFont(playeridTimerTD[playerid][1], 2);
    
PlayerTextDrawSetProportional(playeridTimerTD[playerid][1], 1);
    
PlayerTextDrawSetShadow(playeridTimerTD[playerid][1], 0); 
I need help on how to make these 100 sec go down? Like 99, 98, 97...
I have no idea now... I am confused..
I know I need to use timer
SetTimer("Timer", 1000, true);
but problem is that I don't know what to do here
PHP код:
forward Timer(playerid);
public 
Timer(playerid)
{
    return 
1;

Any ideas??
Reply


Messages In This Thread
Timer - by Micko123 - 01.11.2016, 08:36
Re: Timer - by StrikerZ - 01.11.2016, 08:40
Re: Timer - by Micko123 - 01.11.2016, 08:43
Re: Timer - by StrikerZ - 01.11.2016, 08:44
Re: Timer - by Micko123 - 01.11.2016, 09:13
Re: Timer - by Logic_ - 01.11.2016, 09:24
Re: Timer - by Micko123 - 01.11.2016, 09:34

Forum Jump:


Users browsing this thread: 2 Guest(s)