Help with rules
#3

I've tried the second one and it seems i have errors again:

My code:

pawn Код:
#include <a_samp>

#define DIALOG_RULES 10
#define DIALOG_HELP 11
#define DIALOG_WWW 12

#define COL_WHITE "{FFFFFF}"
#define COL_RED "{F81414}"
#define COL_GREEN "{00FF22}"
#define COL_BLUE 0x1E90FFAA

public OnPlayerCommandText(playerid, cmdtext[])
{
    new pDialog[512];
    strcat(pDialog, "COL_WHITE"Here are some "COL_RED"rules "COL_WHITE"that you should respect:\n", sizeof(pDialog));
    strcat(pDialog, "
COL_GREEN"1. "COL_WHITE"You are not allowed to spam.\n", sizeof(pDialog));
    strcat(pDialog, "COL_GREEN"2. "COL_WHITE"You are not allowed to advertise.\n", sizeof(pDialog));
    strcat(pDialog, "
COL_GREEN"3. "COL_WHITE"You are not allowed to cheat/hack.\n", sizeof(pDialog));
    strcat(pDialog, "COL_GREEN"4. "COL_WHITE"You are not allowed to spawnkill.\n", sizeof(pDialog));
    strcat(pDialog, "
COL_GREEN"5. "COL_WHITE"You are not allowed to insult others.\n", sizeof(pDialog));
    strcat(pDialog, "COL_GREEN"6. "COL_WHITE"You are not allowed to beg for admin.\n", sizeof(pDialog));
    strcat(pDialog, "
COL_WHITE"There are special rules for "COL_GREEN"VIPs"COL_WHITE"! Please check\n", sizeof(pDialog));
    strcat(pDialog, "COL_GREEN"/yaddayaddayadda "COL_WHITE"for more information!", sizeof(pDialog));
    ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "
"COL_BLUE" NFG Rules", pDialog, "OK", "Cancel");
    return 1;
}
errors:

pawn Код:
rules.pwn(15) : error 001: expected token: "-string end-", but found "-identifier-"
rules.pwn(15) : error 017: undefined symbol "Here"
rules.pwn(15) : error 017: undefined symbol "are"
rules.pwn(15) : fatal error 107: too many error messages on one line
Sorry im a bit low in scripting and well im trying to learn and make a small server for me and my friends.
Reply


Messages In This Thread
Help with rules - by 123bob123 - 23.07.2014, 08:30
Re: Help with rules - by codectile - 23.07.2014, 08:35
Re: Help with rules - by 123bob123 - 23.07.2014, 08:58
Re: Help with rules - by KayJ - 23.07.2014, 09:20
Re: Help with rules - by Konstantinos - 23.07.2014, 09:28
Re: Help with rules - by 123bob123 - 23.07.2014, 09:28
Re: Help with rules - by KayJ - 23.07.2014, 09:30
Re: Help with rules - by 123bob123 - 23.07.2014, 09:33
Re: Help with rules - by KayJ - 23.07.2014, 09:34
Re: Help with rules - by KayJ - 23.07.2014, 09:36

Forum Jump:


Users browsing this thread: 1 Guest(s)