11.06.2015, 01:12
How can i put User name here.
I'm using this:
and I want to make it like this:
Idk
I want put player name here. Idk how i tired . Anyone help?
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;
}
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;
}
I want put player name here. Idk how i tired . Anyone help?