tagmismatch
Posted: 2012 Jan 14 14:58
kodėl 43 eilutėj rodo warningą "tagmismatch"?
Code: Select all
else if(!pFlags & AWP_VIPFLAG)
Code: Select all
#include <amxmodx> #define VERSION "1.1.2"#define AWP_VIPFLAG ADMIN_LEVEL_H new const PREFIX[] = "!g| VIP |!n" new g_msgSayText public plugin_init() { register_plugin("VIP AWP", VERSION, "As") register_event("CurWeapon", "EventCurWeapon", "be", "1=1") g_msgSayText = get_user_msgid("SayText") } public EventCurWeapon(id){ new weapon = read_data(2) new mapname[32] get_mapname(mapname, 31) new pFlags = get_user_flags(id) if(weapon == CSW_AWP) { if(equali(mapname, "awp_")) { return PLUGIN_HANDLED } else if(equali(mapname, "de_dust2_2x2") || equali(mapname, "de_dust2_3x3")) { client_cmd(id, "drop") print_chatc(id, "%s Siame zemelapyje !tAWP!n naudoti yra draudziama!", PREFIX) } else if(!pFlags & AWP_VIPFLAG) { client_cmd(id, "drop") print_chatc(id, "%s Tik !tVIP!n zaidejai gali naudoti !tAWP!n!", PREFIX) } } return PLUGIN_HANDLED} stock print_chatc(const id, const input[], any:...){ new count = 1, players[32] static msg[191] vformat(msg, 190, input, 3) replace_all(msg, 190, "!g", "^4") // Green Color replace_all(msg, 190, "!n", "^1") // Default Color replace_all(msg, 190, "!t", "^3") // Team Color if (id) players[0] = id else get_players(players, count, "ch") for (new i = 0; i < count; i++) { if (is_user_connected(players[i])) { message_begin(MSG_ONE_UNRELIABLE, g_msgSayText, _, players[i]) write_byte(players[i]) write_string(msg) message_end() } }}