SA-MP Forums Archive
ShowPlayerDialog woudn't show everything - 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: ShowPlayerDialog woudn't show everything (/showthread.php?tid=443206)



ShowPlayerDialog woudn't show everything - Goldilox - 11.06.2013

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.


Re: ShowPlayerDialog woudn't show everything - DaTa[X] - 11.06.2013

pawn Код:
new str1[300];



Re: ShowPlayerDialog woudn't show everything - CodyCummings - 11.06.2013

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.


Re: ShowPlayerDialog woudn't show everything - Goldilox - 11.06.2013

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