SA-MP Forums Archive
Text - 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: Text (/showthread.php?tid=181992)



Text - DyDy - 08.10.2010

Hello all.

Код:
ShowPlayerDialog(playerid,0,DIALOG_STYLE_MSGBOX,"Something.","Text:\n\n\
		\nSome text\
		\nSome text\
		\nSome text\
		\nSome text\
		","w","w");
When I type a lot of text, pawno shows that line too long. What can I do? I have to write all the text I want.


Re: Text - MadeMan - 08.10.2010

pawn Код:
new text[256];
strcat(text, "Some text", sizeof(text));
strcat(text, "\nSome text", sizeof(text));
strcat(text, "\nSome text", sizeof(text));
strcat(text, "\nSome text", sizeof(text));
ShowPlayerDialog(playerid,0,DIALOG_STYLE_MSGBOX,"Something.",text,"w","w");