Dialog line too long
#1

Sup /sf/, I got a ShowPlayerDialog with all my server rules.
How do I break this line into two parts? I get errors because the line is too long.

It looks something like this, but info[] is too long and I need to split it if you know what I'm talking about.

ShowPlayerDialog(playerid, 29350, DIALOG_STYLE_MSGBOX, "Server Rules", "A lot of rules\nMoar rules\nIt keeps going like this for a while", "Accept", "Decline");

EDIT: The errors I get:
Code:
C:\Server\gamemodes\hannesmode.pwn(6694) : error 075: input line too long (after substitutions)
C:\Server\gamemodes\hannesmode.pwn(6795) : error 037: invalid string (possibly non-terminated string)
C:\Server\gamemodes\hannesmode.pwn(6795) : error 017: undefined symbol "No"
C:\Server\gamemodes\hannesmode.pwn(6795) : error 017: undefined symbol "cheats"
C:\Server\gamemodes\hannesmode.pwn(6795) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Errors.
Reply
#2

pawn Code:
new dialogstring[stringsize];
strcat(dialogstring,"Hi\nHi\n\Hi\nHi\nHi\nHi\nHi\nHi\n\
      Hi\n\Hi\n\Hi\n"
);
ShowPlayerDialog(playerid, 29350, DIALOG_STYLE_MSGBOX, "Server Rules", dialogstring, "Accept", "Decline");
Reply
#3

Quote:
Originally Posted by Kitten
View Post
pawn Code:
new dialogstring[stringsize];
strcat(dialogstring,"Hi\nHi\n\Hi\nHi\nHi\nHi\nHi\nHi\n\
      Hi\n\Hi\n\Hi\n"
);
ShowPlayerDialog(playerid, 29350, DIALOG_STYLE_MSGBOX, "Server Rules", dialogstring, "Accept", "Decline");
Thanks for the quick answer, +rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)