SELECT not work.
#1

The function below does not work!
To OnPlayerConnect:
Код HTML:
mysql_format(MySQLCon, query, sizeof(query), "SELECT * FROM bans WHERE IP = '%s' AND `Player` = '%e'", playerIP, GetName(playerid));
    mysql_query(MySQLCon, query);
    if(cache_num_rows())
    {
        SetTimerEx("KickPublic", 50, false, "i", playerid);
        return 1;
    }
The player is named and IP in "bans" table and but still may enter.
Reply


Messages In This Thread
SELECT not work. - by norton2 - 05.12.2015, 21:24
Re: SELECT not work. - by prineside - 05.12.2015, 23:10
Re: SELECT not work. - by PaulDinam - 06.12.2015, 04:47
Re: SELECT not work. - by norton2 - 06.12.2015, 06:20

Forum Jump:


Users browsing this thread: 3 Guest(s)