CTime problem?
#1

Hi i made this script

pawn Код:
new name [ MAX_PLAYER_NAME ],
            k_time = cache_get_field_content_int ( 0, "time", dbCON );
        cache_get_field_content ( 0, "name", name, dbCON );
       
        if ( !strcmp ( name, GetName ( playerid ) ) ) {
            printf ( "%d", difftime ( time ( ), k_time  ) );
       
       
        }
I had error type mismatch at difftime ( time ( ), k_time ) why ?
I tryed to convert k_time value to a Time: variable.. nothing..
Reply
#2

Can you show me this difftime() function?
Reply
#3

native difftime(Time: tTime1, Time: tTime2);

--> https://sampforum.blast.hk/showthread.php?tid=294054
Reply
#4

So time() is actually gettime() - Have you tried using gettime() instead of time() already? (It's probably the same, but you could give that a try)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)