AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   I get error on compiler - warning 213: tag mismatch (https://forums.alliedmods.net/showthread.php?t=206341)

emaya93 01-21-2013 07:31

I get error on compiler - warning 213: tag mismatch
 
I dont know how to fix that, i get this error
Quote:

new.sma(130) : warning 213: tag mismatch
new.sma(144) : warning 213: tag mismatch
new.sma(160) : warning 213: tag mismatch
new.sma(182) : warning 213: tag mismatch
new.sma(195) : warning 213: tag mismatch
new.sma(224) : warning 213: tag mismatch
This error is from chatcolor, but i dont know how to fix that.. Need some help please, thanks!

Code:

/* Thanks a lot to red bull for make me this plugin, thanks a lot! /*
#include <amxmodx>
#include <cstrike>
#include <fun>
#include <fakemeta>
#include <hamsandwich>
#include <colorchat>

#pragma semicolon 1

#define RED  0
#define GREEN  255
#define BLUE  255

#define HE 30
#define FLASH 50
#define TIME 7

#define KEYS    ((1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<4)|(1<<5)|(1<<6)|(1<<9))

#define PLUGIN "DeathRun Terro Menu"
#define VERSION "1.2"
#define AUTHOR "Vicious Vixen"

new const PREFIX[] = "IlogicGroup";
new const MenuName[] = "\rTero Meniu^n^n";
new const NumeSite[] = "\ywww.numesite.ro";

new MENU;

new bool: UserIsInvisible[33];

public plugin_init()
{
    register_plugin(PLUGIN, VERSION, AUTHOR);
   
    MENU = register_menuid("MENU");
    register_menucmd( MENU, KEYS, "MenuHandler");
   
    RegisterHam(Ham_Spawn, "player", "fw_PlayerSpawn", 1);
    register_event("CurWeapon","evCurWeapon","be");
   
}

public fw_PlayerSpawn(id)
{
    client_cmd(id, "cl_backspeed 400");
    client_cmd(id, "cl_forwardspeed 400");
    client_cmd(id, "cl_sidespeed 400");
   
    if(UserIsInvisible[id])
    {
        set_user_rendering(id, kRenderFxNone, 0, 0, 0, kRenderNormal, 0);
        UserIsInvisible[id] = false;
    }
    if( is_user_ok(id)) showMenu(id);
   
    return HAM_IGNORED;
}

public showMenu(id)
{   
    new szMenu[1024], n;
   
    n = formatex(szMenu, 1023, "%s",MenuName);
   
    n += formatex(szMenu[n], 1023-n, "\r1.\w Free Run^n");
    n += formatex(szMenu[n], 1023-n, "\r2.\w Invizibilitate^n");
    n += formatex(szMenu[n], 1023-n, "\r3.\w Victima^n");
    n += formatex(szMenu[n], 1023-n, "\r4.\w Alba ca Zapada^n");
    n += formatex(szMenu[n], 1023-n, "\r5.\w Sniper^n");
    n += formatex(szMenu[n], 1023-n, "\r6.\w Grenazi^n^n\r0.\w Iesire^n^n%s",NumeSite);
   
    show_menu(id, KEYS, szMenu, TIME, "MENU");
   
}
public MenuHandler(id, key)
{
   
    if(!is_user_ok(id)) return 1;
   
    switch(key)
    {
        case 0:
        {
            freerun(id);
            return 1;
        }
        case 1:
        {
            invizibilitate(id);
            return 1;
        }
        case 2:
        {
            Victima(id);
            return 1;
        }
        case 3:
        {
            alba_ca_zapada(id);
            return 1;
        }
        case 4:
        {
            sniper(id);
            return 1;
        }
        case 5:
        {
            grenazi(id);
            return 1;
        }
        case 9:
        {
            showMenu(id);
            return 1;
        }
    }
    return 0;
}

public freerun(id)
{
    new name[32];
    get_user_name(id,name,31);
   
    set_hudmessage(RED, GREEN, BLUE, 0.02, 0.20, 0, 6.0, 3.0);
    show_hudmessage(0, "%s A lasat jocul Free Run, Primul CT care ajunge, ii va da arma!!",name);
   
    ColorChat(id, RED,"^x01[^x04 %s^x01 ]^x03 Ai lasat jocul^x04 Free Run,^x03 primul^x04 CT^x03 care ajunge la tine trebuie sa iti dea^x04 arma!",PREFIX);
    client_cmd(id,"say /free");
}

public invizibilitate(id)
{
   
    new name[32];
    get_user_name(id,name,31);
   
    set_hudmessage(RED, GREEN, BLUE, 0.02, 0.20, 0, 6.0, 3.0);
    show_hudmessage(0, "%s este acum invizibil !!",name);
   
    server_cmd("deathrun_mode ^"INVIS^"");
    ColorChat(id, RED, "^x01[^x04 %S^x01 ]^x03 Ai lasat jocul^x04 Acum esti total^x03 invizibil!",PREFIX);
    set_user_rendering(id, kRenderFxNone, 0, 0, 0, kRenderTransAlpha, 0);
    UserIsInvisible[id] = true;
}

public Victima(id)
{
    new name[32];
    get_user_name(id,name,31);
   
    set_hudmessage(RED, GREEN, BLUE, 0.02, 0.20, 0, 6.0, 3.0);
    show_hudmessage(0, "%s a primit 1000 HP iar echipa CT AWP, deoarece a ales modul VICTIMA !",name);
    new Players[32];
    new PlayersNum, plr;
    get_players(Players, PlayersNum, "c");   
   
    ColorChat(id, RED, "^x01[^x04 %S^x01 ]^x03 Esti o^x04 victima^x03 acuma!",PREFIX);
    for(new i=0; i<PlayersNum; i++) {
        plr = Players[i];
        if(is_user_alive( plr ) && cs_get_user_team( plr ) == CS_TEAM_CT )
        {
            give_item(id, "weapon_awp");
            cs_set_user_bpammo(id , CSW_AWP, 35);
            set_user_health(id, 100);
        }
    }
   
    set_user_health(id, 10000);
}

public alba_ca_zapada(id)
{
    new name[32];
    get_user_name(id,name,31);
   
    set_hudmessage(RED, GREEN, BLUE, 0.02, 0.20, 0, 6.0, 3.0);
    show_hudmessage(id, "%s a primit %d de Flashbang!",name,FLASH);   
   
    ColorChat(id, RED, "^x01[^x04 %S^x01 ]^x03 Ai primit^x04 %d^x03 de^x04 Flashbang!", FLASH, PREFIX);
    give_item(id, "weapon_flashbang");
    cs_set_user_bpammo(id , CSW_FLASHBANG, HE);
}

public sniper(id)
{
    new name[32];
    get_user_name(id,name,31);
   
    set_hudmessage(RED, GREEN, BLUE, 0.02, 0.20, 0, 6.0, 3.0);
    show_hudmessage(0, "%s are un AWP cu 35 gloante. Echipa CT a primit cate un DEAGLE !!",name);
   
    ColorChat(id, RED, "^x01[^x04 %S^x01 ]^x03 Ai primit un^x04 AWP^x03 cu^x04 35^x03 gloante !",PREFIX);
   
    new Players[32];
    new PlayersNum, plr;
    get_players(Players, PlayersNum, "c");
   
    for(new i=0; i<PlayersNum; i++) {
        plr = Players[i];
        if(is_user_alive( plr ) && cs_get_user_team( plr ) == CS_TEAM_CT )
        {
            give_item(id, "weapon_deagle");
            give_item(id, "item_assaultsuit");
            cs_set_user_bpammo(id , CSW_DEAGLE, 35);
        }
    }
    give_item(id, "weapon_awp");
    cs_set_user_bpammo(id , CSW_AWP, 35);
   
}

public grenazi(id)
{
   
    new name[32];
    get_user_name(id,name,31);
   
    set_hudmessage(RED, GREEN, BLUE, 0.02, 0.20, 0, 6.0, 3.0);
    show_hudmessage(0, "%s a primit %d de HE !",name,HE);
   
    ColorChat(id, RED, "^x01[^x04 %S^x01 ]^x03 Ai primit^x04 %d^x03 de^x04 HE !", PREFIX, HE);
   
    give_item(id, "weapon_hegrenade");
    cs_set_user_bpammo(id,CSW_HEGRENADE,HE);
}


stock is_user_ok(id)
{
    if(is_user_alive(id) && is_user_connected(id) && cs_get_user_team(id) == CS_TEAM_T)
        return 1;
   
    return 0;
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ ansicpg1252\\ deff0\\ deflang1033{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par }
*/


AngeIII 01-21-2013 07:55

Re: I get error on compiler - warning 213: tag mismatch
 
your defines is not correct for ColorChat stock.
#define RED 0
#define GREEN 255
#define BLUE 255

emaya93 01-21-2013 08:00

Re: I get error on compiler - warning 213: tag mismatch
 
OMG! i made a big mistake thanks duude :)) Sorry for bother you :D


All times are GMT -4. The time now is 13:42.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.