Code generator
#10

Quote:
Originally Posted by vannesenn
Посмотреть сообщение
Yeap, look this

10053020140511


10 is hours.. If it's hours less 10, then will be 9 and code will be

9053020140511 and this code have 13 numbers. I need only 14 numbers, so when it's date or time less 10, I need 0 before time/date... Dou You understand now?
Makes absolutely no sense when gettime() contains all this data all that is required is the correct formatting.

Get this
https://sampforum.blast.hk/showthread.php?tid=347605

Do this
pawn Код:
new year, month, day, hour, minute, second;
TimestampToDate(time, year, month, day, hour, minute, second, 1);
format(line, sizeof(line), "%i/%02i/%02i - %i:%02i:%02i", year, month, day, hour, minute, second);
No need for all that non-sense your trying to do.
Reply


Messages In This Thread
Code generator - by vannesenn - 10.10.2014, 16:51
Re: Code generator - by SKAzini - 10.10.2014, 17:04
Re: Code generator - by Pottus - 10.10.2014, 17:39
Re: Code generator - by vannesenn - 10.10.2014, 17:41
Re: Code generator - by biker122 - 10.10.2014, 17:46
Re: Code generator - by vannesenn - 10.10.2014, 17:51
Re: Code generator - by Pottus - 10.10.2014, 18:00
Re: Code generator - by vannesenn - 10.10.2014, 18:19
Re: Code generator - by SimonItaly - 10.10.2014, 18:28
Re: Code generator - by Pottus - 10.10.2014, 20:37

Forum Jump:


Users browsing this thread: 1 Guest(s)