mysql tquery
#1

Why is OnAccountCheck not being called? I don't see the print.

Код:
forward OnAccountCheck(playerid);

public OnPlayerConnect(playerid)
{
	SetPlayerColor(playerid, 0x888888FF);
	GameTextForPlayer(playerid,"~r~SA-MP: ~w~Rivershell",2000,5);
	RemoveNeededBuildingsForPlayer(playerid);
	
	new query[256];
	GetPlayerName(playerid, PlayerInfo[playerid][Name], 24);
	mysql_format(mysql, query, sizeof(query), "SELECT `Password`, `ID` FROM `accounts` WHERE `Name` = '%e' LIMIT 1", PlayerInfo[playerid][Name]);
	mysql_tquery(mysql, query, "OnAccountCheck", "i", playerid);
	return 1;
}

public OnAccountCheck(playerid)
{
	print("Reached onAccountCheck!")


Crashdetect doesn't show anything and the mysql_log looks normal.
Reply


Messages In This Thread
mysql tquery - by MartinSwag - 23.08.2015, 08:08
Re: mysql tquery - by Belengher - 23.08.2015, 08:42
Re: mysql tquery - by MartinSwag - 23.08.2015, 08:52
Re: mysql tquery - by AndySedeyn - 23.08.2015, 09:00

Forum Jump:


Users browsing this thread: 2 Guest(s)