Name of player in text
#3

Format a string first:
pawn Код:
new string[128], playerName[24]; //declare the variables
GetPlayerName(playerid, playerName, sizeof(playerName)); //get the name
format(string, 128, "{F7C600}Welcome back {458CFF} %s.", playerName); //generate the string you want to be displayed in the dialog
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,""COL_WHITE"Login", string,"Login","Quit")); //insert the string in the "info" field of the dialog
Reply


Messages In This Thread
Name of player in text - by xX4m4zingXx - 15.01.2015, 18:08
Re: Name of player in text - by Schneider - 15.01.2015, 18:16
Re: Name of player in text - by HazardouS - 15.01.2015, 18:18
Re: Name of player in text - by Abagail - 15.01.2015, 18:20
Re: Name of player in text - by xX4m4zingXx - 15.01.2015, 19:34

Forum Jump:


Users browsing this thread: 1 Guest(s)