Dialog MSGBOX
#1

Hey, I have a issue with the DIALOG MSGBOX, apparently my text wont fit into it I get this error,
pawn Код:
error 075: input line too long (after substitutions)
After I remove some text this will dissapear but I really need that text is there anyway to avoid this?
Reply
#2

Just remove a few words from the dialog and it'll be fine.
Reply
#3

Use strcat.
Reply
#4

How can I use this function in a MSGBOX Dialog, can you show me an example please?
Reply
#5

pawn Код:
new
    info[ 500 ] // Change this depending on your message's lenght.
;

strcat( info, "blablalba.... AAAAAAAAAAAAAAAAAAAAAAAAAAAAA.... imagine some large message over here..." );
strcat( info, "blablalba.... AAAAAAAAAAAAAAAAAAAAAAAAAAAAA.... imagine some large message over here as well... BBBBBBBBBBBBBBBBBBBBBBBBB" );

ShowPlayerDialog( ... );
// Replace the text with info. It stores the text now!
Reply
#6

Alright, this really helped me, thank you.
Reply
#7

But for some reason it isn't working with me, not sure what I did wrong but this is what I have
pawn Код:
ShowPlayerDialog(playerid,DIALOG_HELP,DIALOG_STYLE_MSGBOX,"HELP","info","CLOSE","");
And I also stored some text on the string with strcat like you showed me on the example.
I just get the 'info' displayed instead of the text.
Reply
#8

pawn Код:
ShowPlayerDialog(playerid,DIALOG_HELP,DIALOG_STYLE_MSGBOX,"HELP",info,"CLOSE","");
Without "", it's stored to info.
Reply
#9

Ah, thanks again
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)