[FilterScript] [FS]Clock by TheChoosenOne
#2

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.
Reply


Messages In This Thread
[FS]Clock by TheChoosenOne - by TheChoosenOne - 13.01.2009, 16:38
Re: [FS]Clock by TheChoosenOne - by Sandra18[NL] - 13.01.2009, 16:50
Re: [FS]Clock by TheChoosenOne - by TheChoosenOne - 13.01.2009, 16:56
Re: [FS]Clock by TheChoosenOne - by Sandra18[NL] - 13.01.2009, 16:59
Re: [FS]Clock by TheChoosenOne - by Serbish - 13.01.2009, 17:02
Re: [FS]Clock by TheChoosenOne - by TheChoosenOne - 13.01.2009, 17:03
Re: [FS]Clock by TheChoosenOne - by Serbish - 13.01.2009, 17:05
Re: [FS]Clock by TheChoosenOne - by TheChoosenOne - 13.01.2009, 17:07
Re: [FS]Clock by TheChoosenOne - by Serbish - 13.01.2009, 17:10
Re: [FS]Clock by TheChoosenOne - by hamptonin - 13.01.2009, 17:25

Forum Jump:


Users browsing this thread: 1 Guest(s)