01.11.2016, 08:36
"Brain stopped working...
Check the log for more info"
Well I need your help guys.
I have textdraw
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
Any ideas??
Check the log for more info"
Well I need your help guys.
I have textdraw
PHP код:
TimerTD[playerid][0] = CreatePlayerTextDraw(playerid, 526.000305, 246.746658, "Time_left:");
PlayerTextDrawLetterSize(playerid, TimerTD[playerid][0], 0.294666, 1.490489);
PlayerTextDrawTextSize(playerid, TimerTD[playerid][0], 647.000000, 0.000000);
PlayerTextDrawAlignment(playerid, TimerTD[playerid][0], 1);
PlayerTextDrawColor(playerid, TimerTD[playerid][0], -1);
PlayerTextDrawUseBox(playerid, TimerTD[playerid][0], 1);
PlayerTextDrawBoxColor(playerid, TimerTD[playerid][0], 255);
PlayerTextDrawSetShadow(playerid, TimerTD[playerid][0], 0);
PlayerTextDrawSetOutline(playerid, TimerTD[playerid][0], 0);
PlayerTextDrawBackgroundColor(playerid, TimerTD[playerid][0], 255);
PlayerTextDrawFont(playerid, TimerTD[playerid][0], 2);
PlayerTextDrawSetProportional(playerid, TimerTD[playerid][0], 1);
PlayerTextDrawSetShadow(playerid, TimerTD[playerid][0], 0);
TimerTD[playerid][1] = CreatePlayerTextDraw(playerid, 592.222290, 246.746673, "100_sec");
PlayerTextDrawLetterSize(playerid, TimerTD[playerid][1], 0.294666, 1.490489);
PlayerTextDrawAlignment(playerid, TimerTD[playerid][1], 1);
PlayerTextDrawColor(playerid, TimerTD[playerid][1], -1);
PlayerTextDrawSetShadow(playerid, TimerTD[playerid][1], 0);
PlayerTextDrawSetOutline(playerid, TimerTD[playerid][1], 0);
PlayerTextDrawBackgroundColor(playerid, TimerTD[playerid][1], 255);
PlayerTextDrawFont(playerid, TimerTD[playerid][1], 2);
PlayerTextDrawSetProportional(playerid, TimerTD[playerid][1], 1);
PlayerTextDrawSetShadow(playerid, TimerTD[playerid][1], 0);
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;
}