Quote:
Originally Posted by Backstabnoob
Something like that, replace double quotes by single ones, therefore you don't need to escape them with ^ and I don't even know how MySQL handles double quotes.
Only thing I don't understand is your enabled ? "LOGGED_IN" : "LOGGED_OUT" nonsense. Why do you even use it? Of course they will be logged in since you're calling the query from client_connect. Simply use SET Status = 'LOGGED_IN' in client_connect and LOGGED_OUT in client_disconnect.
Also, you're using "name" variable which doesn't even exist. You should check some basic pawn tutorials before trying to use more complex things such as MySQL.
|
thanx for helping me .. now everything is ok except one thing.
how i block user to connect my server if his status is LOGGED_IN . ?