Dialog line too long - 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: Dialog line too long (
/showthread.php?tid=348537)
Dialog line too long -
[NWA]Hannes - 05.06.2012
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.
Re: Dialog line too long -
Kitten - 05.06.2012
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");
Re: Dialog line too long -
[NWA]Hannes - 05.06.2012
Quote:
Originally Posted by Kitten
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