thus aint wurk
#1

Hey guys, i wanted to limit registrations to max 3 accounts on 1 IP, so i wrote this check,
Код:
		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, "", "");
		new numrows = cache_num_rows();
		if(numrows >= 3) return SendClientMessage(playerid, COLOR_WHITE, "{ff387a}[Server]:{ffffff} You have reached the max registered accounts on this IP, please use your previous account.");
However its not working, i placed this at OnPlayerConnect
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)