30.10.2011, 11:16
Nice Tutorial AceFlyer Next time use this one
so theres 0 before the numer 1 to 9 like this
"06:01" anyway i love it! i using it on my gangwar gamemode
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;
}
"06:01" anyway i love it! i using it on my gangwar gamemode