17.08.2014, 11:57
That's gotta be one of the most bizzare scripts I've ever seen. I didn't (can't) watch the video so also no idea why it would disappear, TextDrawHide* or TextDrawDestroy on a conflicting ID might cause this.
So, things to correct, in your "TimerSec" public, why loop through all online players when you can use TextDrawShowForAll, also your format was that "most bizzare" thing to me, you can make it simpler:
The "%02d" will format a number to only 2 decimals (the "2d" part) and a "0" in front signifies pad with zeroes if not long enough, e.g. "09:08" for 9:08AM.
Edit: MicroD was faster, I was writing this "wall of text".
So, things to correct, in your "TimerSec" public, why loop through all online players when you can use TextDrawShowForAll, also your format was that "most bizzare" thing to me, you can make it simpler:
pawn Код:
format(string, sizeof(string), "%02d:%02d", hour, minute);
Edit: MicroD was faster, I was writing this "wall of text".