22.11.2012, 15:11
Hi, it's been a while since I posted here but, here goes. I'm having a problem with "DELETE FROM", i'm using BlueG's R7 MySQL Plugin, can anyone see anything wrong with this code;
The sql code does work cause i've tried it on phpmyadmin and it worked perfectly.
Thanks.
Код:
// 24 Day Account Deleter. forward AccountDeleter(); public AccountDeleter() { new Timestamp = gettime() - (60*60*23*24-1053); new Query[150]; format(Query, sizeof(Query), "DELETE FROM `accounts` WHERE `LastLogged` < %d", Timestamp); mysql_function_query(Connect, Query, false, "", ""); print(Query); printf(SERVER_NAME " - %d accounts have been deleted in todays account clean.", mysql_affected_rows(Connect)); return 1; }
Thanks.