Just a simple help
#1

How can i put User name here.

I'm using this:

PHP код:
public OnAccountCheck(playerid)
{
    new 
rows, fields;
    
cache_get_data(rows, fields, mysql);
    if(
rows)
    {
        
cache_get_field_content(0, "Password", Player[playerid][Password], mysql, 129);
        
Player[playerid][IDs] = cache_get_field_content_int(0, "IDs");
        
ShowPlayerDialog(playerid, LoginDialog, DIALOG_STYLE_INPUT, "Login", "Welcome back!\n\nType your password below to log in.\n\nIf this is not your account,please join with \nanother username - this one is taken!\n", "Login", "Quit");
    }
    else
    {
        
ShowPlayerDialog(playerid, RegisterDialog, DIALOG_STYLE_INPUT, "Register", "Welcome !\n\nYour account is not registered yet!\nType your password into the box below to register your account.", "Register", "Quit");
    }
    return 
true;
} 
and I want to make it like this:

PHP код:
stock ShowPlayerLoginDialog(playerid, info[])
{
    
dialog = "";
    
format(dialog, sizeof(dialog),
    
"Welcome back, %s!\n\nType your password below to log in.\n\nIf this is not your account,please join with \nanother username - this one is taken!\n\n%s",
      
pData[playerid][Name], info);
    
ShowPlayerDialog(playerid, D_LOGIN, DIALOG_STYLE_PASSWORD, "Login", dialog, "Login", "Quit");
    return 
1;
} 
Idk

I want put player name here. Idk how i tired . Anyone help?
Reply


Messages In This Thread
Just a simple help - by STONEGOLD - 11.06.2015, 01:12
Re: Just a simple help - by J0sh... - 11.06.2015, 01:14
Re: Just a simple help - by SickAttack - 11.06.2015, 01:16
Re: Just a simple help - by STONEGOLD - 11.06.2015, 01:25
Re: Just a simple help - by SickAttack - 11.06.2015, 01:34
Re: Just a simple help - by STONEGOLD - 11.06.2015, 01:42

Forum Jump:


Users browsing this thread: