SA-MP Forums Archive
CTime problem x2 - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: CTime problem x2 (/showthread.php?tid=418021)



CTime problem x2 - gabyk - 23.02.2013

hi, i use CTime by Ryder and i had a error at:

pawn Код:
new interval = A_DifferenceDate ( );
new tm <time_plug>;
localtime ( interval, time_plug );
A_DifferenceDate return with a number like 1681681861, i got error warning 213: tag mismatch
Why?


Re: CTime problem x2 - Misiur - 23.02.2013

What are you trying to achieve? You are trying to convert diffrence between unix timestamps to Time tag (struct)? First argument in localtime is Time tagged variable, not timestamp