SA-MP Forums Archive
Input line too long (after substitutions) error with diagog rules - 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: Input line too long (after substitutions) error with diagog rules (/showthread.php?tid=441236)



Input line too long (after substitutions) error with diagog rules - Diamondier - 02.06.2013

Hello there. I am making a /rules command. I've got 23 rules, but for some odd reason when I run and compile my script, it comes up with

Код:
error 075: input line too long (after substitutions)
Please help!


Re: Input line too long (after substitutions) error with diagog rules - Don_Cage - 02.06.2013

If you're showing the rules and not any player name you can just use
pawn Код:
SendClientMessage(playerid, color, "message");
Also it would be good if you provided the code so we easier can see the problem


Re: Input line too long (after substitutions) error with diagog rules - Diamondier - 02.06.2013

No, I'm doing a dialog, so they type /rules, the dialog comes up with all of the rules, and that's when they can click on the rules, and more information about them will come up.


Re: Input line too long (after substitutions) error with diagog rules - Scenario - 02.06.2013

It means you have too many characters on a single line in your script. You could have quickly found the answer by searching, by the way. Do that in the future. Not searching is what will cause many people here to dislike you.

Either split the strings using strcat... like so:

pawn Код:
strcat(string, "rule 1 - information");
strcat(string, "rule 2 - information");
Or by doing it like this:

pawn Код:
strcat(string, "rule 1 - information  rule 2 - information  rule 3 - information \
rule 4 - information  rule 5 - information  rule 6 - information"
);



Re: Input line too long (after substitutions) error with diagog rules - Diamondier - 02.06.2013

Its a case


Re: Input line too long (after substitutions) error with diagog rules - Scenario - 02.06.2013

Can you post your code, please? I'm a bit confused exactly on how you're getting an error on a case statement...