New MySQL Errors for old mysql
#7

Quote:
Originally Posted by B3x7K
Посмотреть сообщение
Wait wait, i realize something....
What do I change this to cache_get_data for

Код:
forward OnForumAccountCheck(playerid);
public OnForumAccountCheck(playerid)
{
	new rows, fields;
	cache_get_data(rows, fields, mysql);
	if(rows)
	{
	    new String[150];
	    new pName[24];
	    GetPlayerName(playerid, pName, 24);
	    GiveNameSpace(pName);
		cache_get_value_name(0, "Password", PlayerInfo[playerid][Password], mysql, 129);
		PlayerInfo[playerid][ID] = cache_get_value_name_int(0, "ID");
		//printf("%s", PlayerInfo[playerid][Password]);

		format(String, sizeof(String), "{FFFFFF}Welcome back, %s.\n\n{0099FF}This account is already registered.\n\
		{0099FF}Please, input your password below to proceed to the game.\n\n", pName);
		ShowPlayerDialog(playerid, LoginDialog, DIALOG_STYLE_PASSWORD, "Login System", String, "Login", "Leave");
	}
	else
	{
		new String[150];
        new pName[24];
	    GetPlayerName(playerid, pName, 24);
	    GiveNameSpace(pName);

		format(String, sizeof(String), "{FFFFFF}Welcome %s.\n\n{0099FF}This account is not registered.\n\
		{0099FF}Please, input your password below to proceed.\n\n", pName);
 		ShowPlayerDialog(playerid, RegisterDialog, DIALOG_STYLE_PASSWORD, "Registration System", String, "Register", "Leave");
	}
	return 1;
}
Reply


Messages In This Thread
New MySQL Errors for old mysql - by TheLeech - 17.01.2019, 12:45
Re: New MySQL Errors for old mysql - by DarkMythHunter - 17.01.2019, 12:50
Re: New MySQL Errors for old mysql - by TheLeech - 17.01.2019, 13:18
Re: New MySQL Errors for old mysql - by B3x7K - 17.01.2019, 13:27
Re: New MySQL Errors for old mysql - by TheLeech - 17.01.2019, 13:37
Re: New MySQL Errors for old mysql - by B3x7K - 17.01.2019, 14:28
Re: New MySQL Errors for old mysql - by TheLeech - 17.01.2019, 14:34
Re: New MySQL Errors for old mysql - by B3x7K - 17.01.2019, 15:05
Re: New MySQL Errors for old mysql - by TheLeech - 17.01.2019, 15:28

Forum Jump:


Users browsing this thread: 1 Guest(s)