12.01.2011, 16:48
Okei, so I have a small problem.
I'm trying to add advanced bans with time in MySQL, everything works fine not just the time itself (^lol). It looks good in the table. Using date format and gettime().
So this is my query:
Then I fetch the field with the date (seems to be loading just fine). I guess it's my code and not the query/mysql there's something wrong with. This may sound noobish, but help (....)
......
I also have another a lot easier question, I want to split a string with sscanf. The string could look something like this:
The string will always contain 6 integers. So can I do this easily with sscanf?
I'm trying to add advanced bans with time in MySQL, everything works fine not just the time itself (^lol). It looks good in the table. Using date format and gettime().
So this is my query:
Код:
SELECT * FROM `bans` WHERE `plid` = %d LIMIT 1;
pawn Код:
if(gettime() > unbandate)
I also have another a lot easier question, I want to split a string with sscanf. The string could look something like this:
Код:
400, 54, 21, 43, 1, 150