23.07.2014, 09:36
Quote:
The syntax colour highlighting alone should show you the problem.
|
Код:
#include <a_samp> #include <zcmd> // Add this #define DIALOG_RULES 10 // if you have rules dialog why don't you use it? #define DIALOG_HELP 11 #define DIALOG_WWW 12 #define COL_WHITE "{FFFFFF}" #define COL_RED "{F81414}" #define COL_GREEN "{00FF22}" #define COL_BLUE "{345ACF}" // You define it wrong CMD:rules(playerid, params[]) { new pDialog[512]; strcat(pDialog, ""COL_WHITE"Here are some "COL_RED"rules "COL_WHITE"that you should respect:\n"); strcat(pDialog, ""COL_GREEN"1. "COL_WHITE"You are not allowed to spam.\n"); strcat(pDialog, ""COL_GREEN"2. "COL_WHITE"You are not allowed to advertise.\n"); strcat(pDialog, ""COL_GREEN"3. "COL_WHITE"You are not allowed to cheat/hack.\n"); strcat(pDialog, ""COL_GREEN"4. "COL_WHITE"You are not allowed to spawnkill.\n"); strcat(pDialog, ""COL_GREEN"5. "COL_WHITE"You are not allowed to insult others.\n"); strcat(pDialog, ""COL_GREEN"6. "COL_WHITE"You are not allowed to beg for admin.\n"); strcat(pDialog, ""COL_WHITE"There are special rules for "COL_GREEN"VIPs"COL_WHITE"! Please check\n"); strcat(pDialog, ""COL_GREEN"/yaddayaddayadda "COL_WHITE"for more information!"); ShowPlayerDialog(playerid, DIALOG_RULES, DIALOG_STYLE_MSGBOX, ""COL_BLUE" NFG Rules", pDialog, "OK", "Cancel"); // I added after playerid, dialog_rules return 1; }
You forgot to add >"<"col_blue"
If you can't see the post look this.