Input Line too long
#1

error 075: input line too long (after substitutions)
error 037: invalid string (possibly non-terminated string)
error 029: invalid expression, assumed zero
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line

Код:
COMMAND:rules(playerid)
{
	new rules[800];
	strcat(rules,"1.{00FF00}No Cheats/Hacks, or Cleo Mods with Adventages!\n2.{00FF00}No Spawnkilling/Teamkilling!\n3.{00FF00}No Bugabusing!\n4.{00FF00}Insulting is forbidden!\n5.{00FF00}No Advertise!\n\
	6.{00FF00}Dont make any Dispute/Troubles!\n7.{00FF00}Dont write HACKER,CHEATER use /report!\n8.{00FF00}Leaving the Map is not allowed!\n9.{00FF00}Using Caps Lock is not allowed!\n\
	10.{00FF00}Racism are forbidden!\n11.{00FF00}Knifebugging is not allowed!\n12.{00FF00}Do not pausing during in Game!\n13.{00FF00}No Spamming!\n14.{FFFF99}Accept this Rules or go!");
	ShowPlayerDialog(playerid,DIALOG_RULES,DIALOG_STYLE_MSGBOX,"{00FF00}Server Rules",rules,"Close","");
	return 1;
}
Please help me.
Reply
#2

http://forum.sa-mp.com/showpost.php?...42&postcount=4
Reply
#3

I dont understand what you mean.. That help me not.
Reply
#4

Even though you can "glue" those lines, one line can only hold up to (somewhere around) 500 characters. The compiler can't handle large lines. If you have a really big string. I suggest you chop it up in several strings and "glue" them together with strcat or format.
Reply
#5

It is already strcat. I still dont understand what i should make to fix that.
Reply
#6

You need to use strcat multiple times. Every time you use it, you add a small piece of the total string. The one extremely long text as you have it now, doesn't work.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)