Quote:
Originally Posted by GAMER_PS2
Nice Tutorial AceFlyer Next time use this one
pawn Code:
public TimeU() { new string[7]; Tsec+=1; if(Tsec==60) { Tsec=00; THrs+=1; } if(THrs==24) { Tsec=00; THrs=0; } if(Tsec<10) { format(string,sizeof(string),"%d:%d0",THrs,Tsec); } if(Tsec>10) { format(string,sizeof(string),"%d:%02d",THrs,Tsec); } if(THrs<10) { format(string,sizeof(string),"0%d:%02d",THrs,Tsec); } for(new i; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { SetPlayerTime(i,THrs,Tsec); } } TextDrawSetString(Time,string); return 1; }
so theres 0 before the numer 1 to 9 like this
"06:01" anyway i love it! i using it on my gangwar gamemode
|
If people plans to copy and paste (like me xD because this is amazing), people will get a error with
pawn Code:
TextDrawSetString(Time,string);
Change it to
pawn Code:
TextDrawSetString(Servt,string);
and also nice FS