Just a simple help
#1

How can i put User name here.

I'm using this:

PHP код:
public OnAccountCheck(playerid)
{
    new 
rowsfields;
    
cache_get_data(rowsfieldsmysql);
    if(
rows)
    {
        
cache_get_field_content(0"Password"Player[playerid][Password], mysql129);
        
Player[playerid][IDs] = cache_get_field_content_int(0"IDs");
        
ShowPlayerDialog(playeridLoginDialogDIALOG_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(playeridRegisterDialogDIALOG_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(playeridinfo[])
{
    
dialog "";
    
format(dialogsizeof(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(playeridD_LOGINDIALOG_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: 1 Guest(s)