mysql dialog don't show
#1

I guys when i do this code :
PHP код:
public OnPlayerConnect(playerid)
{
    
// connexion message
    
new name[MAX_PLAYER_NAME], string[24+MAX_PLAYER_NAME];
    
GetPlayerName(playeridnamesizeof(name));
    
format(stringsizeof(string), "%s has joined The Aviation Life."name);
    
SendClientMessageToAll(COULEUR_BLEUCLAIRstring);
    
SendClientMessage(playeridCOULEUR_ROUGE"[WARNING]press the spawn button.");
    new 
query[128], playername[MAX_PLAYER_NAME];
    
GetPlayerName(playeridplayernamesizeof(playername));
    
mysql_format(mysqlquerysizeof(query), "SELECT `Password`, `ID` FROM `accounts` WHERE `Name` = '%e' LIMIT 1"playername);
    
mysql_tquery(mysqlquery"OnAccountCheck""i"playerid);
    return 
true;
}
forward OnAccountCheck(playerid);
public 
OnAccountCheck(playerid)
{
    new 
rowsfields;
    
cache_get_data(rowsfieldsmysql);
    if(
rows)
    {
        
cache_get_field_content(0"Password"Player[playerid][Password], mysql129);
        
Player[playerid][ID] = cache_get_field_content_int(0"ID");
        
ShowPlayerDialog(playeridLoginDialogDIALOG_STYLE_INPUT"Login""Welcome player!\nYour account has been found in our database. Please fill in your password:""Login""Quit");
    }
    else
    {
        
ShowPlayerDialog(playeridRegisterDialogDIALOG_STYLE_INPUT"Register""Welcome player!\nYour account has not been registered yet. Please fill in your desired password:""Register""Quit");
    }
    return 
true;

it's not show a dialog, please help me thank you for the help
Reply


Messages In This Thread
mysql dialog don't show - by Eymeric69 - 10.06.2016, 16:26
Re: mysql dialog don't show - by Chilli9434 - 10.06.2016, 16:31
Re: mysql dialog don't show - by Eymeric69 - 10.06.2016, 16:35
Re: mysql dialog don't show - by Vince - 10.06.2016, 16:37
Re: mysql dialog don't show - by Eymeric69 - 10.06.2016, 16:47

Forum Jump:


Users browsing this thread: 1 Guest(s)