SA-MP Forums Archive
Dialog text not showing fully - 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: Dialog text not showing fully (/showthread.php?tid=372852)



Dialog text not showing fully - Jaber_Brown - 28.08.2012

pawn Код:
new regstring[128];
                new regname[64];
                GetPlayerName(playerid,regname,sizeof(regname));
                format(regstring,sizeof(regstring),"Note - An account with this name was not found inside the database.\n if you would like to register this account, \n type in the password you would like to register with.",regname);
                ShowPlayerDialog(playerid,12345,DIALOG_STYLE_INPUT,"Register an account",regstring,"Register","Cancel");
                            PlayerPlaySound(playerid, 1316, 0.0, 0.0, 0.0);
            }
i got this but IG , "would like to register with." doesn't show , any help ?


Re: Dialog text not showing fully - HuSs3n - 28.08.2012

change regstring[128] to regstring[256]
pawn Код:
new regstring[256];
regname[64];
GetPlayerName(playerid,regname,sizeof(regname));
format(regstring,sizeof(regstring),"Note - An account with this name was not found inside the database.\n if you would like to register this account, \n type in the password you would like to register with.",regname);
ShowPlayerDialog(playerid,12345,DIALOG_STYLE_INPUT,"Register an account",regstring,"Register","Cancel");
PlayerPlaySound(playerid, 1316, 0.0, 0.0, 0.0);



Re: Dialog text not showing fully - Cjgogo - 28.08.2012

Husen is right,BUT,much more,as far as I am concerned,the MAXIMUM lenght of a player's name is 24 and IS default,so,why do you use reganme[64]?


Re: Dialog text not showing fully - SuperViper - 28.08.2012

pawn Код:
new regstring[175], regname[MAX_PLAYER_NAME];
GetPlayerName(playerid,regname,sizeof(regname));
format(regstring,sizeof(regstring),"Note - An account with this name was not found inside the database.\n if you would like to register this account, \n type in the password you would like to register with.",regname);
ShowPlayerDialog(playerid,12345,DIALOG_STYLE_INPUT,"Register an account",regstring,"Register","Cancel");
PlayerPlaySound(playerid, 1316, 0.0, 0.0, 0.0);