02.01.2017, 13:17
why every time I put the color format into a dialogue like this, then it could not be compiled and pawn suddenly not responding..
just works without color
this is my gamemodes roleplay, but i use in my gamemodes freeroam its worked!
can help?
just works without color
this is my gamemodes roleplay, but i use in my gamemodes freeroam its worked!
can help?
PHP код:
#define RED_E "{FF0000}"
#define BLUE_E "{004BFF}"
#define SBLUE_E "{56A4E4}"
#define PINK_E "{FFB6C1}"
#define YELLOW_E "{FFFF00}"
#define LG_E "{00FF00}"
#define LB_E "{15D4ED}"
#define LB2_E "{87CEFA}"
#define GREY_E "{BABABA}"
#define GREY2_E "{778899}"
#define GREY3_E "{C8C8C8}"
#define DARK_E "{7A7A7A}"
#define WHITE_E "{FFFFFF}"
#define WHITEP_E "{FFE4C4}"
#define IVORY_E "{FFFF82}"
#define ORANGE_E "{DB881A}"
#define GREEN_E "{3BBD44}"
#define PURPLE_E "{5A00FF}"
#define LIME_E "{D2D2AB}"
#define LRED_E "{E65555}"
#define DOOM_ "{F4A460}"
#define W "{FFFFFF}"
#define R "{FF0000}"
PHP код:
format(line, sizeof(line), ""RED_E"You have been banned!\n\n"LB2_E"Ban Info:\n"RED_E"Name: "GREY2_E"%s\n"RED_E"IP: "GREY2_E"%s\n"RED_E"Admin: "GREY2_E"%s\n"RED_E"Ban Reason: "GREY2_E"%s\n"RED_E"Ban Date: "GREY2_E"%02d:%02d (%02d/%02d/%d)\n\n"WHITE_E"Feel that you were wrongfully banned? Appeal at nfs-server.pe.hu/forums", pName[playerid], pIP[playerid], pName[adminid], reason, hour, minute, month, day, year);
ShowPlayerDialog(playerid, NO_DIALOG, DIALOG_STYLE_MSGBOX, ""RED_E"BANNED", line, "Exit", "");