ShowPlayerDialog - login to RP server - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: ShowPlayerDialog - login to RP server (
/showthread.php?tid=100425)
ShowPlayerDialog - login to RP server -
rcwarez - 04.10.2009
Hi, I have a question about the ShowPlayerDialog,
what do you do that instead of letters in the window showed a star or circles?
Код:
if(strcmp(cmdtext, "/login", true) == 0)
{
new s[128];
new loginname[MAX_PLAYER_NAME];
GetPlayerName(playerid,loginname,MAX_PLAYER_NAME);
format(s,sizeof(s),"Witaj ponownie, %s!\n\nProsze sie zalogowac by kontynuowac!",loginname);
ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Wpisz swoje haslo",s,"Zaloguj","Anuluj");
return 1;
}
example:
I write letters, stars come out.
Login: Tony
Password: *****
But after pressing the "login" to save the letters, not stars for function OnDialogResponse.
Thx.
Re: ShowPlayerDialog - login to RP server -
Jasen - 04.10.2009
Its not possible, also seems a bit useless your the only person who is going to be looking at the screen. You could try putting a text draw over it.