Long messages with ShowPlayerDialog - 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: Long messages with ShowPlayerDialog (
/showthread.php?tid=249192)
Long messages with ShowPlayerDialog -
THE_KNOWN - 17.04.2011
ok i want to make a dialog that shows stats. is there a way to format the text in the showplayerdialog for showing money etc?. if i use new s[...] and format it, i need way lots of memory like s[512] so is there a way to save this memory and format it inside ShowPlayerDialog itself?
Re: Long messages with ShowPlayerDialog -
iJumbo - 17.04.2011
i think no ... or i dont understand what you say
Re: Long messages with ShowPlayerDialog -
Jeffry - 17.04.2011
pawn Код:
new string[1024]; // <= That's the string's size (1024).
format(string, sizeof(string), "Money: $%d\r\nMore stats....", GetPlayerMoney(playerid)); // \r\n makes a new line.
ShowPlayerDialog(playerid, 1234, DIALOG_STYLE_MSGBOX, "Your Stats", string, "Close", "Close");
That's what you were talking about?
Re: Long messages with ShowPlayerDialog -
THE_KNOWN - 23.04.2011
1024 ok to use? ****** said 128 is beeter then 256 so i thought there was a limit
Re: Long messages with ShowPlayerDialog -
Steven82 - 23.04.2011
128 is how many cells. So 1024 is alot of cells say if you only display one stat. But since your doing a full /stat command in dialog you will need around 512 to 1024 or even less. Be sure to make the size of everything fit and try not to waste cells. Read some of ******'s scripting topics about cells and optimization stuff.