IP ban problem!
#2

First, I'd recommend updating your MySQL plugin to the latest. Rather than using OnQueryFinish, you can create named callbacks like so:

Код:
mysql_tquery(connectionHandle, "(your query)", "OnIpChecked", "d", playerid);

forward OnIpChecked(playerid);
public OnIpChecked(playerid)
{
  if (cache_get_row_count())
  {
    // Block playerid
  }
}
It might not be working right now because you could be getting back 2+ rows, and your condition checks for exactly 1. The above checks to see if 1 or more row is returned.
Reply


Messages In This Thread
IP ban problem! - by daghost111 - 19.02.2017, 19:07
Re: IP ban problem! - by michael2572 - 20.02.2017, 20:17

Forum Jump:


Users browsing this thread: 1 Guest(s)