thus aint wurk
#2

That is not how threaded queries work(mysql_tquery).

pawn Код:
new pIP[16];
        GetPlayerIp(playerid, pIP, sizeof(pIP));
        mysql_format(mysql, query, sizeof(query), "SELECT * FROM `players` WHERE `IP` = '%s'", pIP);
        mysql_tquery(mysql, query, "OnRegistrationCheck", "d", playerid);
pawn Код:
forward OnRegistrationCheck(playerid);
public OnRegistrationCheck(playerid)
{
      if(cache_get_row_count() >= 3) return SendClientMessage(playerid, COLOR_WHITE, "{ff387a}[Server]:{ffffff} You have reached the max registered accounts on this IP, please use your previous account.");
   
      // put the rest of the code here
      return 1;
}
Reply


Messages In This Thread
thus aint wurk - by yvoms - 11.12.2015, 18:23
Re: thus aint wurk - by Abagail - 11.12.2015, 18:32
Re: thus aint wurk - by yvoms - 11.12.2015, 18:39
Re: thus aint wurk - by Denying - 11.12.2015, 19:17
Re: thus aint wurk - by yvoms - 13.12.2015, 11:47
Re: thus aint wurk - by yvoms - 13.12.2015, 19:09

Forum Jump:


Users browsing this thread: 1 Guest(s)