16.10.2011, 10:07
Okay, so I wanted to make a dialog for my rules, using /rules. So I used zcmd and made:
But I got 5 errors when compiling:
But I tried making it a lot shorter by only using 2 rules and it compiled! I do not understand why it is giving me so much errors.
Is it just basically too long and cannot be put into a dialog, or is there a way to break it into two lines instead of just one? Because I've seen long rules in other servers put into dialogs.
P.S. I also had another dialog made, used it instead on that line and it was much shorter, so it then compiled, thats why I came to the conclusion that the line it too long.
Thanks for reading
pawn Code:
CMD:rules(playerid, params[])
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Server Rules", "1. No insulting or disrespecting other players\n2. No spamming anything in any way\n3. No ramming or blocking other players\n4. No farming anything in anyway.\n5. Do not say any jokes that may have a negative affect on others.\n6. No advertising allowed in all chats\n7. No mods that benefit anything and anyone are allowed\n8. No cheats, including hacks of any kind, are allowed.\nFor any explanation on all these rules please visit our website\nwww.websitegoeshere.com", "Agree", "");
return 1;
}
pawn Code:
C:\Users\myuser\Desktop\Misc\Server\gamemodes\test.pwn(143) : error 075: input line too long (after substitutions)
C:\Users\myuser\Desktop\Misc\Server\gamemodes\test.pwn(144) : error 037: invalid string (possibly non-terminated string)
C:\Users\myuser\Desktop\Misc\Server\gamemodes\test.pwn(144) : warning 215: expression has no effect
C:\Users\myuser\Desktop\Misc\Server\gamemodes\test.pwn(144) : error 001: expected token: ";", but found "."
C:\Users\myuser\Desktop\Misc\Server\gamemodes\test.pwn(144) : error 029: invalid expression, assumed zero
C:\Users\myuser\Desktop\Misc\Server\gamemodes\test.pwn(144) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.
Is it just basically too long and cannot be put into a dialog, or is there a way to break it into two lines instead of just one? Because I've seen long rules in other servers put into dialogs.
P.S. I also had another dialog made, used it instead on that line and it was much shorter, so it then compiled, thats why I came to the conclusion that the line it too long.
Thanks for reading