Gettime doesnt save in MYSQL
#1

PHP код:
                    PlayerData[playerid][TimeTruck] = gettime();
                    new 
str[128];
                    
mysql_format(SQLstr,128,"UPDATE `users` SET `TruckTime`='%d' WHERE `id` = '%d' LIMIT 1",PlayerData[playerid][TimeTruck],PlayerData[playerid][ID]);
                    
mysql_tquery(SQLstr""""); 
i want to save the gettime so a player can use a cmd every 6 hours.
this is the save code,but in the table it always says NULL-doesn`t change.
Reply
#2

Well in the table you must have something like this:
[ this is the way i save last time or something when i use gettime( ) ]
Reply
#3

i solved it,i misstyped timetruck with trucktime
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)