CTime problem x2
#1

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?
Reply
#2

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)