15.01.2015, 18:18
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