SA-MP Forums Archive
how to add a countdown with mins and secs - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: how to add a countdown with mins and secs (/showthread.php?tid=354486)



how to add a countdown with mins and secs - Chris1337 - 27.06.2012

I mean when im adding the countdown , i already have all the td , the problem is

Example :

pawn Код:
mins = 10;
    secs = 59;
    SetTimer("timeandmap", 6000, true);

public timeandmap()
{
    new newtext[500];
    secs = secs - 1;
    format(newtext, sizeof(newtext), "~r~Time Remaining~n~ ~n~ ~n~ ~w~ %d:%d", mins, secs);
    TextDrawSetString(countd, newtext);
    TextDrawShowForAll(countd);
}