Dialog text not showing fully
#1

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 ?
Reply
#2

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);
Reply
#3

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]?
Reply
#4

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);
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)