Pretty long string
#1

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?
Reply
#2

ShowPlayerDialog(playerid,1000,DIALOG_STYLE_MSGBOX ,"Info","All your string");
Reply
#3

Didn't you see that I said that I can't just type it on one line? So your option isn't valid.
Reply
#4

Use "\n" between the lines, like, 30 characters per line.
Reply
#5

pawn Код:
new string[1000];
        strcat(string," BLABLA\n");
        strcat(string," BLABLA\n");
        strcat(string," BLABLA\n");
Reply
#6

use strcat(Twisted_Insane) or:
pawn Код:
new szString[512];
format(szString, sizeof szString, "%s", yourstuff);
format(szString, sizeof szString, "%s%s", szString, yourstuff);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)