[SOLVED]Playername In Dialog.. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [SOLVED]Playername In Dialog.. (
/showthread.php?tid=403540)
-DELETE- -
KomplettMaster - 30.12.2012
-DELETE-
Re: [HELP]Playername In Dialog.. -
RedCrossER - 30.12.2012
pawn Код:
new pName[30],sgg[40];
GetPlayerName(playerid,pName,30);
format(sgg,sizeof(sgg),"%s Register",pName);
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, sgg, "Welcome To Trucking\nEnter A Good Secure Password To Register", "Register", "Quit");
Re: [HELP]Playername In Dialog.. -
KomplettMaster - 30.12.2012
I Want To Show The Player's Name In %s I Mean The Name To The Player As Gonna Register
Re: [HELP]Playername In Dialog.. - Riddy - 30.12.2012
You need to run it through a format query, like this:
pawn Код:
new str[40], playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
format(str, sizeof(str), "%s - Register", playername);
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, str, "Welcome To Trucking\nEnter A Good Secure Password To Register", "Register", "Quit");
Re: [HELP]Playername In Dialog.. -
RedCrossER - 30.12.2012
Quote:
Originally Posted by KomplettMaster
I Want To Show The Player's Name In %s I Mean The Name To The Player As Gonna Register 
|
Yes That's It Check My Above Code
Re: [HELP]Playername In Dialog.. -
KomplettMaster - 30.12.2012
Omg!!!! Samp Forums <333
Problem Solved!