ShowPlayerDialog woudn't show everything
#1

With whole bunch of \n's I can't have all the information in the ShowPlayerDialog. Some of the things don't come.

pawn Код:
format(str1, 128, "{FFFFFF}Welcome back to ***!\n\nUsername: %s\nOrganization: %s\nAccount Status: {ADFF2F}Registered\n{FFFFFF}Please punch in your password in order to play.",name,dini_Get(Pos(playerid),"Org"));
        ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_PASSWORD, "Membership Area", str1, "Login", "");
It doesn't show anything after "punch" even if I add a \n there.
Reply
#2

pawn Код:
new str1[300];
Reply
#3

It's due to string size, the size you've specified in format is 128, therefore you're limited to 128 characters total (including all of the data you used while formatting). What you're going to want to do is replace...

pawn Код:
format(str1, 128, ...
...with...
pawn Код:
format(str1, sizeof(str1), ...
...and then increase the size of str1 as needed.
Reply
#4

How dump of me! Thanks guys! +rep'ed!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)