AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   sma error (https://forums.alliedmods.net/showthread.php?t=317407)

mousesports 07-11-2019 13:11

sma error
 
Hello ,

Can anyone help with this sma error :

Your plugin failed to compile! Read the errors below:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

/tmp/textA7isZX.sma(2) : fatal error 100: cannot read from file: "colorchat"

Compilation aborted.
1 Error.


PHP Code:

#include <amxmodx>
#include <colorchat>
#include <cstrike>
#include <csx>
#include <engine>
#include <fakemeta_util>
#include <fun>
#include <hamsandwich>

#define IsPlayer(%1) (1<=%1<=maxPlayers)
#define g_Buffer 1536
#define write_coord_f(%1) engfunc(EngFunc_WriteCoord, %1)

forward amxbans_admin_connect(id);

new Array:
g_Arraybool:g_Vip[33], bool:hs[33][33], gRound=0g_Hudmsg,
m_DeathMsgm_ScoreAttribm_ScoreInfom_ScreenFademaxPlayers,
menumenu_callback_handlersprSkullweapon_id;

new const 
clips[]={013, -01017030301302025303525122010301008303020273030050};
new const 
g_Langcmd[][]={"say /vips","say_team /vips","say /vipy","say_team /vipy"};
new const 
g_Prefix[] = "Vip Chat";
new const 
spawnEntString[2][]={
    
"info_player_start",
    
"info_player_deathmatch"
};

public 
plugin_init(){
    
register_plugin("VIP Ultimate""12.3.0.2""benio101 & speedkill");
    
RegisterHam(Ham_Spawn"player""SpawnedEventPre"1);
    
register_logevent("RoundEnd"2"1=Round_End");
    
register_event("DeathMsg""DeathMsg""a");
    
register_event("HLTV""event_new_round""a""1=0""2=0");
    
register_logevent("GameCommencing"2"1=Game_Commencing");
    
g_Array=ArrayCreate(64,32);
    for(new 
i;i<sizeof g_Langcmd;i++){
        
register_clcmd(g_Langcmd[i], "ShowVips");
    }
    
register_clcmd("say /vip""ShowMotd");
    
set_task(30.0"ShowAdv",.flags "b");
    
g_Hudmsg=CreateHudSyncObj();
    
register_event("Damage""damage""b""2!0""3=0""4!0");
    
register_clcmd("say_team""VipChat");
    
register_message(get_user_msgid("SayText"),"handleSayText");
    
RegisterHam(Ham_Killed"player""killedPre"0);
    
RegisterHam(Ham_TraceAttack"player""traceAttack"1);
}
public 
client_authorized(id){
    if(
get_user_flags(id) & 524288 == 524288){
        
client_authorized_vip(id);
    }
}
public 
client_authorized_vip(id){
    
g_Vip[id]=true;
    new 
g_Name[64];
    
get_user_name(id,g_Name,charsmax(g_Name));
    
    new 
g_Size ArraySize(g_Array);
    new 
szName[64];
    
    for(new 
0g_Sizei++){
        
ArrayGetString(g_ArrayiszNamecharsmax(szName));
        
        if(
equal(g_NameszName)){
            return 
0;
        }
    }
    
ArrayPushString(g_Array,g_Name);
    
set_hudmessage(241902200.250.206.06.0);
    
ShowSyncHudMsg(0g_Hudmsg"Vip% s sticks to the server!",g_Name);
    
    return 
PLUGIN_CONTINUE;
}
public 
client_disconnect(id){
    if(
g_Vip[id]){
        
client_disconnect_vip(id);
    }
}
public 
client_disconnect_vip(id){
    
g_Vip[id]=false;
    new 
Name[64];
    
get_user_name(id,Name,charsmax(Name));
    
    new 
g_Size ArraySize(g_Array);
    new 
g_Name[64];
    
    for(new 
0g_Sizei++){
        
ArrayGetString(g_Arrayig_Namecharsmax(g_Name));
        
        if(
equal(g_Name,Name)){
            
ArrayDeleteItem(g_Array,i);
            break;
        }
    }
}
public 
SpawnedEventPre(id){
    if(
g_Vip[id]){
        if(
is_user_alive(id)){
            
SpawnedEventPreVip(id);
        }
    }
}
public 
menu_1_handler(id){
    
set_user_rendering(idkRenderFxNone0,0,0kRenderTransAlpha200);
    new 
henum=(user_has_weapon(id,CSW_HEGRENADE)?cs_get_user_bpammo(id,CSW_HEGRENADE):0);
    
give_item(id"weapon_hegrenade");
    ++
henum;
    new 
fbnum=(user_has_weapon(id,CSW_FLASHBANG)?cs_get_user_bpammo(id,CSW_FLASHBANG):0);
    
give_item(id"weapon_flashbang");
    ++
fbnum;
    
cs_set_user_bpammo(idCSW_FLASHBANG2);
    new 
sgnum=(user_has_weapon(id,CSW_SMOKEGRENADE)?cs_get_user_bpammo(id,CSW_SMOKEGRENADE):0);
    
give_item(id"weapon_smokegrenade");
    ++
sgnum;
    if(
get_pdata_cbase(id369)==-1){
        
give_item(id"weapon_deagle");
        
give_item(id"ammo_50ae");
        
weapon_id=find_ent_by_owner(-1"weapon_deagle"id);
        if(
weapon_id)cs_set_weapon_ammo(weapon_id7);
        
cs_set_user_bpammo(idCSW_DEAGLE35);
    }
    if(
get_pdata_cbase(id368)==-1){
        
give_item(id"weapon_ak47");
        
give_item(id"ammo_762nato");
        
weapon_id=find_ent_by_owner(-1"weapon_ak47"id);
        if(
weapon_id)cs_set_weapon_ammo(weapon_id30);
        
cs_set_user_bpammo(idCSW_AK4790);
    }
}
public 
menu_2_handler(id){
    
set_user_rendering(idkRenderFxNone0,0,0kRenderTransAlpha200);
    new 
henum=(user_has_weapon(id,CSW_HEGRENADE)?cs_get_user_bpammo(id,CSW_HEGRENADE):0);
    
give_item(id"weapon_hegrenade");
    ++
henum;
    new 
fbnum=(user_has_weapon(id,CSW_FLASHBANG)?cs_get_user_bpammo(id,CSW_FLASHBANG):0);
    
give_item(id"weapon_flashbang");
    ++
fbnum;
    
cs_set_user_bpammo(idCSW_FLASHBANG2);
    new 
sgnum=(user_has_weapon(id,CSW_SMOKEGRENADE)?cs_get_user_bpammo(id,CSW_SMOKEGRENADE):0);
    
give_item(id"weapon_smokegrenade");
    ++
sgnum;
    if(
get_pdata_cbase(id369)==-1){
        
give_item(id"weapon_deagle");
        
give_item(id"ammo_50ae");
        
weapon_id=find_ent_by_owner(-1"weapon_deagle"id);
        if(
weapon_id)cs_set_weapon_ammo(weapon_id7);
        
cs_set_user_bpammo(idCSW_DEAGLE35);
    }
    if(
get_pdata_cbase(id368)==-1){
        
give_item(id"weapon_m4a1");
        
give_item(id"ammo_556nato");
        
weapon_id=find_ent_by_owner(-1"weapon_m4a1"id);
        if(
weapon_id)cs_set_weapon_ammo(weapon_id30);
        
cs_set_user_bpammo(idCSW_M4A190);
    }
}
public 
menu_3_handler(id){
    
set_user_rendering(idkRenderFxNone0,0,0kRenderTransAlpha200);
    new 
henum=(user_has_weapon(id,CSW_HEGRENADE)?cs_get_user_bpammo(id,CSW_HEGRENADE):0);
    
give_item(id"weapon_hegrenade");
    ++
henum;
    new 
fbnum=(user_has_weapon(id,CSW_FLASHBANG)?cs_get_user_bpammo(id,CSW_FLASHBANG):0);
    
give_item(id"weapon_flashbang");
    ++
fbnum;
    
cs_set_user_bpammo(idCSW_FLASHBANG2);
    new 
sgnum=(user_has_weapon(id,CSW_SMOKEGRENADE)?cs_get_user_bpammo(id,CSW_SMOKEGRENADE):0);
    
give_item(id"weapon_smokegrenade");
    ++
sgnum;
    if(
get_pdata_cbase(id369)==-1){
        
give_item(id"weapon_deagle");
        
give_item(id"ammo_50ae");
        
weapon_id=find_ent_by_owner(-1"weapon_deagle"id);
        if(
weapon_id)cs_set_weapon_ammo(weapon_id7);
        
cs_set_user_bpammo(idCSW_DEAGLE35);
    }
    if(
get_pdata_cbase(id368)==-1){
        
give_item(id"weapon_awp");
        
give_item(id"ammo_338magnum");
        
weapon_id=find_ent_by_owner(-1"weapon_awp"id);
        if(
weapon_id)cs_set_weapon_ammo(weapon_id10);
        
cs_set_user_bpammo(idCSW_AWP30);
    }
}
public 
plugin_cfg(){
    
maxPlayers=get_maxplayers();
    
m_ScreenFade=get_user_msgid("ScreenFade");
    
m_DeathMsg=get_user_msgid("DeathMsg");
    
m_ScoreAttrib=get_user_msgid("ScoreAttrib");
    
m_ScoreInfo=get_user_msgid("ScoreInfo");
}
public 
RoundEnd(){
    for(new 
i=1i<=maxPlayers; ++i){
        if(
is_user_alive(i)){
            
set_user_rendering(ikRenderFxNone255255255kRenderNormal16);
        }
    }
    for(new 
1<= maxPlayersi++){
        if(
is_user_alive(i) && g_Vip[i]){
            
cs_set_user_money(i,cs_get_user_money(i) + 500);
        }
    }
}
public 
DeathMsg(){
    new 
killer=read_data(1);
    new 
victim=read_data(2);
    
    if(
is_user_alive(killer) && g_Vip[killer] && get_user_team(killer) != get_user_team(victim)){
        
DeathMsgVip(killer,victim,read_data(3));
    }
}
public 
event_new_round(){
    ++
gRound;
}
public 
GameCommencing(){
    
gRound=0;
}
public 
DeathMsgVip(kid,vid,hs){
    if(
gRound>=1){
        
set_user_health(kidmin(get_user_health(kid)+(hs?15:10),130));
        
cs_set_user_money(kidcs_get_user_money(kid)+(hs?500:300));
    }
}
public 
SpawnedEventPreVip(id){
    
show_vip_menu(id);
    new 
g_Model[64];
    
formatex(g_Model,charsmax(g_Model),"%s",get_user_team(id) == "VipTT" "VipCT");
    
cs_set_user_model(id,g_Model);
}
public 
show_vip_menu(id){
    
menu=menu_create("\rMenu VIPa","menu_handler");
    
menu_callback_handler=menu_makecallback("menu_callback");
    new 
bool:active=falsenum=-1;
    
menu_additem(menu,"\wM4A1+Deagle+Grenade","",0,menu_callback_handler);
    if(
menu_callback(idmenu, ++num)==ITEM_ENABLED){
        
active=true;
    }
    
menu_additem(menu,"\wAK47+Deagle+Grenade","",0,menu_callback_handler);
    if(
menu_callback(idmenu, ++num)==ITEM_ENABLED){
        
active=true;
    }
    
menu_additem(menu,"\wAWP+Deagle+Grenade","",0,menu_callback_handler);
    if(
menu_callback(idmenu, ++num)==ITEM_ENABLED){
        
active=true;
    }
    if(
active){
        
menu_setprop(menu,MPROP_EXITNAME,"Exit");
        
menu_setprop(menu,MPROP_TITLE,"\yMenu Vip");
        
menu_setprop(menu,MPROP_NUMBER_COLOR,"\r");
        
menu_display(idmenu);
    } else {
        
menu_destroy(menu);
    }
}
public 
menu_callback(idmenuitem){
    if(
is_user_alive(id)){
        if(
gRound>=3){
            if(
item==0){
                return 
ITEM_ENABLED;
            }
            if(
item==1){
                return 
ITEM_ENABLED;
            }
            if(
item==2){
                return 
ITEM_ENABLED;
            }
        }
    }
    return 
ITEM_DISABLED;
}
public 
menu_handler(idmenuitem){
    if(
is_user_alive(id)){
        if(
gRound>=3){
            if(
item==0){
                
menu_1_handler(id);
            }
            if(
item==1){
                
menu_2_handler(id);
            }
            if(
item==2){
                
menu_3_handler(id);
            }
        }
    }
    
menu_destroy(menu);
    return 
PLUGIN_HANDLED;
}
public 
ShowVips(id){
    new 
g_Name[64],g_Message[192];
    
    new 
g_Size=ArraySize(g_Array);
    
    for(new 
0g_Sizei++){
        
ArrayGetString(g_Arrayig_Namecharsmax(g_Name));
        
        
add(g_Messagecharsmax(g_Message), g_Name);
        
        if(
== g_Size 1){
            
add(g_Messagecharsmax(g_Message), ".");
        }
        else{
            
add(g_Messagecharsmax(g_Message), ", ");
        }
    }
    
ColorChat(id,GREEN,"^x03Vipy ^x04na ^x03serwerze: ^x04%s"g_Message);
    
ShowVipsMotd(id);
    return 
PLUGIN_CONTINUE;
}
public 
ShowVipsMotd(id){
    new 
Data[g_Buffer],Len,g_Name[64];
    
    
Len formatex(Data[Len], g_Buffer Len"<html><body bgcolor=Black><br>");
    
Len += formatex(Data[Len], g_Buffer Len"<center><table frame=^"border^" width=^"600^" cellspacing=^"0^" bordercolor=#4A4344 style=^"color:#56A5EC;text-align:center;^">");
    
Len += formatex(Data[Len], g_BufferLen"<tr><td><b>#</b></td><td><b>Nick</b></td></td></tr>");
    
    new 
g_Size=ArraySize(g_Array);
    
    for(new 
0g_Sizei++){
        
ArrayGetString(g_Arrayig_Namecharsmax(g_Name));
        
        
Len += formatex(Data[Len], g_Buffer Len"<tr>");
        
Len += formatex(Data[Len], g_Buffer Len"<td><font color=Red>%d</font></td>"1);
        
Len += formatex(Data[Len], g_Buffer Len"<td>%s</td>"g_Name);
        
Len += formatex(Data[Len], g_Buffer Len"</tr>");
    }
    
Len += formatex(Data[Len],g_Buffer Len,"</center></body></html>");
    
    
show_motd(idData"Vipy Online");
}
public 
client_infochanged(id){
    if(
g_Vip[id]){
        new 
szName[64];
        
get_user_info(id,"name",szName,charsmax(szName));
        
        new 
Name[64];
        
get_user_name(id,Name,charsmax(Name));
        
        if(!
equal(szName,Name)){
            
ArrayPushString(g_Array,szName);
            
            new 
g_Size=ArraySize(g_Array);
            new 
g_Name[64];
            for(new 
0g_Sizei++){
                
ArrayGetString(g_Arrayig_Namecharsmax(g_Name));
                
                if(
equal(g_Name,Name)){
                    
ArrayDeleteItem(g_Array,i);
                    break;
                }
            }
        }
    }
}
public 
plugin_end(){
    
ArrayDestroy(g_Array);
}
public 
ShowMotd(id){
    
show_motd(id"vip.txt""Informacje o vipie");
}
public 
ShowAdv(){
    
ColorChat(0NORMAL"[VIP]^x04 Want to know what the VIP has? Write on Say'u/VIP");
}
public 
damage(id){
    new 
attacker=get_user_attacker(id);
    new 
damage=read_data(2);
    
    if(
g_Vip[id]){
        
set_hudmessage(255000.450.5020.14.00.10.1, -1);
        
ShowSyncHudMsg(idg_Hudmsg"%i^n"damage);
    }
    if(
is_user_connected(attacker) && g_Vip[attacker]){
        
set_hudmessage(0100200, -1.00.5520.14.00.020.02, -1);
        
ShowSyncHudMsg(attackerg_Hudmsg"%i^n"damage);
    }
}
public 
VipChat(id){
    if(
g_Vip[id]){
        new 
g_Msg[256],
        
g_Text[256];
        
        
read_args(g_Msg,charsmax(g_Msg));
        
remove_quotes(g_Msg);
        
        if(
g_Msg[0] == '*' && g_Msg[1]){
            new 
g_Name[64];
            
get_user_name(id,g_Name,charsmax(g_Name));
            
            
formatex(g_Text,charsmax(g_Text),"^x01(%s) ^x03%s : ^x04%s",g_Prefixg_Nameg_Msg[1]);
            
            for(new 
i=1;i<33;i++){
                if(
is_user_connected(i) && g_Vip[i])
                
ColorChat(iGREEN"%s"g_Text);
            }
            return 
PLUGIN_HANDLED_MAIN;
        }
    }
    return 
PLUGIN_CONTINUE;
}
public 
handleSayText(msgId,msgDest,msgEnt){
    new 
id get_msg_arg_int(1);
    
    if(
is_user_connected(id) && g_Vip[id]){
        new 
szTmp[256],szTmp2[256];
        
get_msg_arg_string(2,szTmpcharsmax(szTmp))
        
        new 
szPrefix[64] = "^x04[VIP]";
        
        if(!
equal(szTmp,"#Cstrike_Chat_All")){
            
add(szTmp2,charsmax(szTmp2),szPrefix);
            
add(szTmp2,charsmax(szTmp2)," ");
            
add(szTmp2,charsmax(szTmp2),szTmp);
        }
        else{
            
add(szTmp2,charsmax(szTmp2),szPrefix);
            
add(szTmp2,charsmax(szTmp2),"^x03 %s1^x01 :  %s2");
        }
        
set_msg_arg_string(2,szTmp2);
    }
    return 
PLUGIN_CONTINUE;
}
public 
bomb_planted(id){
    if(
is_user_alive(id) && g_Vip[id]){
        
cs_set_user_money(id,cs_get_user_money(id) + 300);
    }
}
public 
bomb_defused(id){
    if(
is_user_alive(id) && g_Vip[id]){
        
cs_set_user_money(id,cs_get_user_money(id) + 300);
    }
}
public 
plugin_precache(){
    
precache_model("models/player/VipCT/VipCT.mdl");
    
precache_model("models/player/VipTT/VipTT.mdl");
    
sprSkull=precache_model("sprites/skull.spr");
}
public 
recharge(id){
    new 
wid=get_user_weapon(id);
    if(
wid){
        new 
weaponname[32], weid;
        
get_weaponname(widweaponname31);
        
weid=find_ent_by_owner(-1weaponnameid);
        if(
weid){
            
cs_set_weapon_ammo(weidclips[wid]);
        }
    }
}
public 
traceAttack(vidaidFloat:dmgFloat:dir[3], ptrdmgbits){
    if(
IsPlayer(aid)){
        
hs[aid][vid]=bool:(get_tr2(ptrTR_iHitgroup)==1);
    }
}
public 
screen_flash(idredgreenbluealpha){
    
message_begin(MSG_ONE_UNRELIABLEm_ScreenFade_id);
    
write_short(1<<12);
    
write_short(1<<12);
    
write_short(1<<12);
    
write_byte(red);
    
write_byte(green);
    
write_byte(blue);
    
write_byte(alpha);
    
message_end();
}
public 
find_free_spawn(iTeamNumberFloat:spawnOrigin[3], Float:spawnAngle[3]){
    new 
iSpawn;
    if(
iTeamNumber==2)
    
iSpawn=0;
    else
    
iSpawn=1;
    
    const 
maxSpawns=128;
    new 
spawnPoints[maxSpawns], bool:spawnChecked[maxSpawns], spawnpointspawnnum;
    new 
ent=-1spawnsFound=0;
    
    while((
ent=fm_find_ent_by_class(ent,spawnEntString[iSpawn])) && spawnsFound<maxSpawns)
    
spawnPoints[spawnsFound++]=ent;
    
    new 
Float:vicinity 100.0;        //(32x32x96)
    
new ientList[1];
    
    for(
i=0i<maxSpawnsi++)
    
spawnChecked[i]=false;
    
    
// Loop through all the spawn points
    
i=0;
    while(
i++<spawnsFound*10){
        
spawnnum=random(spawnsFound);
        
spawnpoint=spawnPoints[spawnnum];
        
        if(
spawnpoint && !spawnChecked[spawnnum]){
            
//don't check this spawn point again
            
spawnChecked[spawnnum]=true;
            
            
// Get the origin of the spawn point
            
pev(spawnpointpev_originspawnOrigin);
            
            
// Determine if something is in this near the spawn point
            
if(!fm_find_sphere_class(0"player"vicinityentList1spawnOrigin)){
                
// If there is nothing, return the angles and spawnpoint
                
pev(spawnpointpev_anglesspawnAngle);
                return 
spawnpoint;
            }
        }
    }
    
    return 
0;
}
stock fm_find_sphere_class(ent, const _classname[], Float:radiusentlist[], maxentsFloat:origin[3]={0.0,0.0,0.0}){
    if( 
pev_valid(ent) )
    
peventpev_originorigin );
    new 
tempenttempclass[32], entsfound;
    while( (
tempent fm_find_ent_in_sphere(tempentoriginradius) ) && entsfound maxents ){
        if( 
pev_valid(tempent) ){
            
pev(tempentpev_classnametempclass31);
            if( 
equal_classnametempclass ) )
            
entlist[entsfound++] = tempent;
        }
    }
    return 
entsfound;
}
public 
teleport_to_own_spawn(data[]){
    new 
id=data[0];
    new 
origin[3], Float:fl_origin[3];
    new 
Float:angle[3], Float:fOrigin[3];
    
    
pev(idpev_originfOrigin);
    
fOrigin[2]+=35.0;
    
message_begin(MSG_BROADCASTSVC_TEMPENTITY);
    
write_byte(TE_SPRITE);
    
write_coord_f(fOrigin[0]);
    
write_coord_f(fOrigin[1]);
    
write_coord_f(fOrigin[2]);
    
write_short(sprSkull);
    
write_byte(20);
    
write_byte(255);
    
message_end();
    
    
find_free_spawn(get_user_team(id), fl_originangle);
    
FVecIVec(fl_originorigin);
    
    
set_user_origin(idorigin);
    
set_pev(idpev_anglesangle);
}
public 
remove_godmode(data[]){
    
set_user_godmode(data[0]);
}
public 
recharge0(data[]){
    
recharge(data[0]);
}
public 
do_deathmsg(iKilleriVictimiHS, const szWeapon[]){
    
message_begin(MSG_BROADCASTm_DeathMsg);
    
write_byte(iKiller);
    
write_byte(iVictim);
    
write_byte(iHS);
    
write_string(szWeapon);
    
message_end();
}
public 
killedPre(idkid){
    if(
g_Vip[id] && random(100)<5){
        if(
gRound>=1){
            
ExecuteHam(Ham_AddPointskid1true);
            
screen_flash(id25500100);
            
set_user_health(id100);
            
set_user_godmode(id1);
            
            new 
data[1];
            
data[0]=id;
            
            
set_task(0.1"teleport_to_own_spawn"_data1);
            
set_task(0.55"recharge0"_data1);
            
set_task(1.0"remove_godmode"_data1);
            
            new 
bool:suicide;
            
            if(
IsPlayer(kid)){
                if(
id==kid){
                    
suicide=true;
                    
do_deathmsg(idid0"suicide");
                } else {
                    if(
get_user_team(kid)!=get_user_team(id)){
                        
ExecuteHam(Ham_AddPointskid1true);
                    }
                    new 
szWeapon[24];
                    
get_weaponname(get_user_weapon(kid), szWeapon23);
                    
replace(szWeapon23"weapon_""");
                    
do_deathmsg(kididhs[kid][id], szWeapon);
                }
            } else {
                
suicide=true;
                
do_deathmsg(idid0"suicide");
            }
            
            
message_begin(MSG_BROADCASTm_ScoreAttrib, {0,0,0}, 0);
            
write_byte(id);
            
write_byte((user_has_weapon(idCSW_C4)?2:0)|cs_get_user_vip(id));
            
message_end();
            
            
message_begin(MSG_BROADCASTm_ScoreInfo);
            
write_byte(id);
            
write_short(get_user_frags(id)-_:suicide);
            
write_short(cs_get_user_deaths(id)+1);
            
write_short(0);
            
write_short(get_user_team(id));
            
message_end();
            
            
set_pdata_int(id3620);
            
            return 
HAM_SUPERCEDE;
        }
    }
    return 
HAM_IGNORED;
}
public 
amxbans_admin_connect(id){
    
client_authorized(id);



thEsp 07-11-2019 13:46

Re: sma error
 
I guess you're using an old version of AMXX, if this case is true then upgrade to 1.8.2 (Latest stable build) or 1.10 (Latest unstable build). But anyhow you need to have colorchat header, download it and paste to "amxmodx/scripting/include".

Fuck For Fun 07-11-2019 13:52

Re: sma error
 
Make sure you using the same version of include and compiler
https://forums.alliedmods.net/showpo...60&postcount=1

OciXCrom 07-11-2019 13:56

Re: sma error
 
Just download colorchat.inc and put it in scripting/include.

mousesports 07-11-2019 15:22

Re: sma error
 
thank you !

mousesports 07-12-2019 11:01

Re: sma error
 
Compiled with amxx 1.8.1 and 1.8.3

Welcome to the AMX Mod X 1.8.1-300 Compiler.



vipGold.sma(360) : error 017: undefined symbol "NORMAL"
vipGold.sma(360) : warning 215: expression has no effect
vipGold.sma(360) : error 001: expected token: ";", but found ")"
vipGold.sma(360) : error 029: invalid expression, assumed zero
vipGold.sma(360) : fatal error 107: too many error messages on one line

Compilation aborted.
4 Errors.
Done.



AMX Mod X Compiler 1.8.3-manual


vipGold.sma(360) : error 017: undefined symbol "NORMAL"
vipGold.sma(360) : warning 215: expression has no effect
vipGold.sma(360) : error 001: expected token: ";", but found ")"
vipGold.sma(360) : error 029: invalid expression, assumed zero
vipGold.sma(360) : fatal error 107: too many error messages on one line

Compilation aborted.
4 Errors.
Done.

OciXCrom 07-12-2019 13:11

Re: sma error
 
Don't use online compilers or AMXX versions downloaded from other websites. Download the latest stable or dev-build from the official website.

mousesports 07-13-2019 08:38

Re: sma error
 
Cand you please try to compile on your server ? I dont know where to compile ... i used the official website compiler to but there was the first error .

OciXCrom 07-13-2019 08:53

Re: sma error
 
Compile it on your computer using the compile.exe program in your scripting folder. What's the point of adding files in scripting/include if you're using an online compiler? Think.

mousesports 07-13-2019 10:33

Re: sma error
 
Ok , i go to try . Thank you !


All times are GMT -4. The time now is 02:19.

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