23.07.2014, 08:30
I've wanted to do a command to show a dialog and show the rules but thing is im having some errors and I would like it like the picture, can someone help me in these errors and maybe i can add more words cause it think it has a limit:
my code:
Errors:
Picture, i want it maybe as this for an example:
my code:
pawn Код:
#include <a_samp>
#define DIALOG_RULES 10
#define DIALOG_HELP 11
#define DIALOG_WWW 12
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/rules",true) ==0)
{
ShowPlayerDialog(playerid, 10, DIALOG_STYLE_MSGBOX, "$^NFG Rules^$", ">>> | Rules | <<<\n-No cheating/mods that gives you more power such as parkour\n-No Bug abusing (includes C-Bug )\n-No insulting other players.Racism and other vulgar remarks will not be tolerated\n-No deathmatching, also includes you cannot revange kill\n-You cannot use the [esc] button to avoid death\n-You cannot bunnyhop using the bike, due to the amount of advantages\n-You cannot scam NFG Points and the limit to scam in-game money is 10000\n-Take a look at /shelp and /pc - For more info about the rules check forums.", "OK", "");
return 1;
}
return 0;
}
pawn Код:
\rules.pwn(11) : error 075: input line too long (after substitutions)
\rules.pwn(12) : error 037: invalid string (possibly non-terminated string)
\rules.pwn(12) : error 017: undefined symbol "Rules"
\rules.pwn(12) : error 017: undefined symbol "n"
\rules.pwn(12) : fatal error 107: too many error messages on one line
Picture, i want it maybe as this for an example:
![](http://i.imgur.com/1ESZLZ8.png)