11.12.2015, 18:32
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;
}

