Mysql
#1

I have problem with newest mysql when i connect to server dialog doesnt appear.
Код:
public OnPlayerConnect(playerid)
{
	new string[255];
    GetPlayerName(playerid,PlayerInfo[playerid][Username],128);
	format(string,255,"SELECT * FROM `accounts` WHERE Username = '%s'",PlayerInfo[playerid][Username]);
	mysql_function_query(Mysql,string,true,"Check","i",playerid);
	return 1;
}
forward Check(playerid);
public Check(playerid)
{
	new rows,fields;
	cache_get_data(rows,fields);
	if(rows)
	{
	    ShowPlayerDialog(playerid, Dialog_Login, DIALOG_STYLE_PASSWORD, "Login", "Type your password below to login.", "Login", "Quit");
	}
	else
	{
	    ShowPlayerDialog(playerid, Dialog_Register, DIALOG_STYLE_PASSWORD, "Register", "Type your password below to register.", "Register", "Quit");
	}
	return 1;
}
Reply


Messages In This Thread
Mysql - by MikE1990 - 29.11.2014, 13:42
Re: Mysql - by Chilli9434 - 29.11.2014, 13:46
Re: Mysql - by Galletziz - 29.11.2014, 13:47
Re: Mysql - by Galletziz - 29.11.2014, 13:50
Re: Mysql - by MikE1990 - 29.11.2014, 13:53
Re: Mysql - by MikE1990 - 29.11.2014, 16:33
Re: Mysql - by Galletziz - 29.11.2014, 16:47
Re: Mysql - by MikE1990 - 29.11.2014, 16:59
Re: Mysql - by Raweresh - 29.11.2014, 17:06
Re: Mysql - by MikE1990 - 29.11.2014, 17:27

Forum Jump:


Users browsing this thread: 1 Guest(s)