[Help - MySQL] Offline Ban not working
#3

There's no active cache when you check for the row count. You have to either use an non-threaded query (not recommended!) or use mysql_tquery - like you are already - and check if the row count is > 0 in the callback that you called with mysql_tquery. There not being an active cache leaves 'rows' with the value of 0, which in return makes the if-statement false.

By the way, your mysql logs should tell you what the issue is.

Quote:
Originally Posted by verlaj
Посмотреть сообщение
WHERE name = %s. U were using %e
Same thing. Difference is that %e escapes the input and %s doesn't.
Reply


Messages In This Thread
[SOLVED by X337] Offline Ban not working - by Sibuscus - 21.03.2017, 18:26
Re: [Help - MySQL] Offline Ban not working - by verlaj - 21.03.2017, 18:50
Re: [Help - MySQL] Offline Ban not working - by AndySedeyn - 21.03.2017, 18:53
Re: [Help - MySQL] Offline Ban not working - by Vince - 21.03.2017, 19:15
Re: [Help - MySQL] Offline Ban not working - by Sibuscus - 22.03.2017, 12:46
Re: [Help - MySQL] Offline Ban not working - by X337 - 22.03.2017, 13:04
Re: [Help - MySQL] Offline Ban not working - by Sibuscus - 22.03.2017, 13:16
Re: [Help - MySQL] Offline Ban not working - by X337 - 22.03.2017, 13:23
Re: [Help - MySQL] Offline Ban not working - by Sibuscus - 22.03.2017, 18:35

Forum Jump:


Users browsing this thread: 1 Guest(s)