Nice, but it looks very similar to the default sa-mp clock.
Код:
TogglePlayerClock(playerid, 1);
Anyway, i have a tip for you regarding this piece of code:
Код:
if(Hour<9 && Minute<9){format(String,sizeof(String),"0%d:0%d",Hour,Minute);}
else if(Hour>9 && Minute<9){format(String,sizeof(String),"%d:0%d",Hour,Minute);}
else if(Hour<9 && Minute>9){format(String,sizeof(String),"0%d:%d",Hour,Minute);}
else{format(String,sizeof(String),"%d:%d",Hour,Minute);}
You can replace that whole code with:
Код:
format(String, sizeof(String), "%02d:%02d", Hour, Minute);
That '%02d' will give that value automatically 2 numbers.