Pretty long string - 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: Pretty long string (
/showthread.php?tid=334050)
Pretty long string -
Joey^ - 13.04.2012
Hey. So I have a string in total size of 1423. And I have to use it in a dialog. And I know I can't just type it on one line. So any good ideas on how to do it? Maybe using packed strings or unpacked? Or using strcat function?
Re: Pretty long string -
aco_SRBIJA - 13.04.2012
ShowPlayerDialog(playerid,1000,DIALOG_STYLE_MSGBOX ,"Info","All your string");
Re: Pretty long string -
Joey^ - 13.04.2012
Didn't you see that I said that I can't just type it on one line? So your option isn't valid.
Re: Pretty long string -
...: 1 :... - 13.04.2012
Use "\n" between the lines, like, 30 characters per line.
Re: Pretty long string -
Twisted_Insane - 13.04.2012
pawn Код:
new string[1000];
strcat(string," BLABLA\n");
strcat(string," BLABLA\n");
strcat(string," BLABLA\n");
Re: Pretty long string -
fordawinzz - 13.04.2012
use strcat(Twisted_Insane) or:
pawn Код:
new szString[512];
format(szString, sizeof szString, "%s", yourstuff);
format(szString, sizeof szString, "%s%s", szString, yourstuff);