Reklam gösterimini engelleyici yazılım kullandığınızı görüyoruz.
Sitemizin ayakta kalıp sizlere hizmet edebilmek için en büyük gelir kaynağı sayfamızda gösterilen reklamlardır.
Reklam gösterimde bizim sayfamıza ayrıcalık tanıyarak ayakta kalmamıza destek olmak ister misiniz ?

Silinmiş Konu   | Sma Amxx çevirirken hata lütfen yardım

Konu

#1
Selam arkadaşlar .sma bi bıçak menü koldalım fakat hata veriyor bilen birileri yardımcı olabilir mi

Bu benim yaptığım .sma
  • /* Plugin generated by AMXX-Studio By ExorTek */#include <amxmodx>#include <amxmisc>#define PLUGIN "Knıfe Menu"#define VERSION "1.0"#define AUTHOR "By ExorTek"#pragma tabsize 0public plugin_init() { register_event("HLTV", "event_round_start", "a", "1=0", "2=0");register_clcmd("say /knifemenu","AwesomeMenu");register_clcmd("say /knifenedir","knifenee")set_task(100.0, "bicakmenureklam", 0, _, _, "b")} public event_round_start(id){knifemenu[id] = 0 for(new id = 1; id < 33; id++){if(is_user_connected(id) && is_user_alive(id) && get_user_team(id) == 2){strip_user_weapons(id)give_item(id,"weapon_knife")}if(is_user_connected(id) && is_user_alive(id) && get_user_team(id) == 1){strip_user_weapons(id)give_item(id,"weapon_knife")}} }public AwesomeMenu(id) {new admin_name[32]get_user_name(id, admin_name , 31 )new menu = menu_create("Dnayst Game^nw[ ~ Knife Menu ~ ]", "menu_handler")menu_additem(menu, "yNormal Bicak", "1", 0);menu_additem(menu, "yKARAMBIT | Crısmon", "2", 0);menu_additem(menu, "yKARAMBIT | Dopler", "3", 0);menu_additem(menu, "yKARAMBIT | Fade", "4", 0);menu_additem(menu, "yKARAMBIT | Fade2", "5", 0);menu_additem(menu, "KARAMBIT | Tıger", "6", 0);menu_additem(menu, "yKARAMBIT | Lore", "7", 0);menu_additem(menu, "yKARAMBIT | Phase", "8", 0);menu_additem(menu, "yKELEBEK | Case", "9", 0);menu_additem(menu, "yKELEBEK | Crısmon", "10", 0);menu_additem(menu, "yKELEBEK | Fade", "11", 0);menu_additem(menu, "yKELEBEK | Dopler", "12", 0);menu_additem(menu, "yKELEBEK | Marbıl", "13", 0);menu_additem(menu, "yKELEBEK | Phase", "14", 0);         menu_additem(menu, "yKELEBEK | Autotron, "15",0)menu_additem(menu, "yM9BAYONET | Autotron, "16",0)menu_additem(menu, "yM9BAYONET | Case, "17",0)menu_additem(menu, "yM9BAYONET | Crısmon, "18",0)menu_additem(menu, "yM9BAYONET | Dopler, "19",0)menu_additem(menu, "yM9BAYONET | Tıger, "20",0)menu_additem(menu, "yM9BAYONET | Lore, "21",0)menu_additem(menu, "yM9BAYONET | Marbıl, "22",0)menu_additem(menu, "yNavaja | Fade, "23",0)menu_additem(menu, "yNavaja | Crısmon, "24",0)menu_additem(menu, "yNavaja | Case, "25",0)menu_additem(menu, "yNavaja | Slaup, "26",0)menu_additem(menu, "yStıletto | Crısmon, "27",0)menu_additem(menu, "yStıletto | Slaug, "28",0)menu_additem(menu, "yStıletto | Fade, "29",0)menu_setprop(menu, MPROP_NEXTNAME, "Diger Bicaklar");      menu_setprop(menu, MPROP_BACKNAME, "Onceki Bicaklar");    menu_setprop(menu, MPROP_EXITNAME, "Menuyu Kapat");    menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);    menu_display(id, menu, 0);chat_color(0,"!t[ ~ %s ~ ] !y%s !g/knifemenu !yYazarak !tBicak Alma Menusune !gGirdi ..!")}public menu_handler(id, menu, item) {    if( item == MENU_EXIT )    {        menu_destroy(menu);        return PLUGIN_HANDLED;    }    new data[6], iName[64];    new access, callback;    menu_item_getinfo(menu, item, access, data,5, iName, 63, callback);    new key = str_to_num(data);    switch(key)    {        case 1: {             knife(id);chat_color(id, "!t[ ~ %s ~ ] !gBasariyla Eski Bicagina Geri Dondun .!",)        }        case 2: {             karakmbıtcrıs(id)chat_color(id, "!t[ ~ %s ~ ] !gBasariyla KARAMBIT | Crısmon Aldin .!",)        }        case 3: {             karambıtdopler(id)chat_color(id, "!t[ ~ %s ~ ] !gBasariyla KARAMBIT | Dopler Aldin .!",)        }        case 4: {             karambıtfade(id)chat_color(id, "!t[ ~ %s ~ ] !gBasariyla KARAMBIT | Fade Aldin .!",)        }        case 5: {             karambıtfade2(id)chat_color(id, "!t[ ~ %s ~ ] !gBasariyla KARAMBIT | Fade2 Aldin .!",)        }case 6: {             karambıttıger(id)chat_color(id, "!t[ ~ %s ~ ] !gBasariyla KARAMBIT | Tıger Aldin .!",)}case 7: {             karambıtlore(id)chat_color(id, "!t[ ~ %s ~ ] !gBasariyla KARAMBIT | Lore .!",)                   }case 8: {             karambıtphase(id)chat_color(id, "!t[ ~ %s ~ ] !gBasariyla KARAMBIT | Phase Aldin .!",)}case 9: {             kelebekcase(id)chat_color(id, "!t[ ~ %s ~ ] !gBasariyla KELEBEK | Case .!",)}case 10: {             kelebekcrısmon(id)chat_color(id, "!t[ ~ %s ~ ] !gBasariyla KELEBEK | Crısmon Aldin .!",)}case 11: {             kelebekfade(id)chat_color(id, "!t[ ~ %s ~ ] !gBasariyla KELEBEK | Fade Aldin .!",)}case 12: {             kelebekdopler(id)chat_color(id, "!t[ ~ %s ~ ] !gBasariyla KELEBEK | Dopler Aldin .!",)}case 13: {             kelebekmarbıl(id)chat_color(id, "!t[ ~ %s ~ ] !gBasariyla KELEBEK | Marbıl Aldin .!",)}case 14: {             kelebekphase(id)chat_color(id, "!t[ ~ %s ~ ] !gBasariyla KELEBEK | Phase Aldin .!",)}    case 16: {            bayonetautot(id)chat_color(id,  "!t[ ~ %s ~ ] !gBasariyla M9 BAYONET | Autotron Aldin .!",)  }case 17: {            bayonetcase(id)chat_color(id,  "!t[ ~ %s ~ ] !gBasariyla M9 BAYONET | Case .!",) }case 18: {            bayonetcrısmon(id)chat_color(id,  "!t[ ~ %s ~ ] !gBasariyla M9 BAYONET | Crısmon Aldin .!",)  }case 19: {            bayonetdopler(id)chat_color(id,  "!t[ ~ %s ~ ] !gBasariyla M9 BAYONET | Dopler .!",) }case 20: {            bayonetıger(id)chat_color(id,  "!t[ ~ %s ~ ] !gBasariyla M9 BAYONET | Tıger .!",)}case 21: {            bayonetlore(id)chat_color(id,  "!t[ ~ %s ~ ] !gBasariyla M9 BAYONET | Lore .!",)}case 22: {            bayonetmarbıl(id)chat_color(id,  "!t[ ~ %s ~ ] !gBasariyla M9 BAYONET | Marbıl .!",)}case 23: {            bayonetslaug(id)chat_color(id,  "!t[ ~ %s ~ ] !gBasariyla M9 BAYONET | Slaug .!",)}case 24: {            navajafade(id)chat_color(id,  "!t[ ~ %s ~ ] !gBasariyla Navaja | Fade .!",)}case 25: {            navajacrısmon(id)chat_color(id,  "!t[ ~ %s ~ ] !gBasariyla Navaja | Crısmon .!",)}case 26: {            navajacase(id)chat_color(id,  "!t[ ~ %s ~ ] !gBasariyla Navaja | Case .!",)}case 27: {            navajaslaug(id)chat_color(id,  "!t[ ~ %s ~ ] !gBasariyla Navaja | Slaup .!",)}case 28: {            stılettocrısmos(id)chat_color(id,  "!t[ ~ %s ~ ] !gBasariyla Stıletto | Crısmon .!",)}case 29: {            stılettoslaug(id)     chat_color(id,  "!t[ ~ %s ~ ] !gBasariyla Stıletto | Slaug .!",) }case 30: {            stılettofade(id)chat_color(id,  "!t[ ~ %s ~ ] !gBasariyla Stıletto | Fade .!",)    }    menu_destroy(menu);    return PLUGIN_HANDLED; } public plugin_precache() { precache_model("models/knife/knife_karambıtcrısmon.mdl")precache_model("models/knife/knife_karambıtdopler.mdl")precache_model("models/knife/knife_karambıtfade.mdl")precache_model("models/knife/knife_karambıtfadee.mdl")precache_model("models/knife/knife_karambıtıger.mdl")precache_model("models/knife/knife_karambıtlore.mdl")precache_model("models/knife/knife_karambıtphase.mdl")precache_model("models/knife/knife_kelebekcase.mdl")precache_model("models/knife/knife_kelebekcrısmon.mdl")precache_model("models/knife/knife_kelebekfade.mdl")precache_model("models/knife/knife_kelebekdopler.mdl")precache_model("models/knife/knife_kelebekmarbl.mdl") precache_model("models/knife/knife_kelebekphase.mdl") precache_model("models/knife/knife_m9bayonetautot.mdl")precache_model("models/knife/knife_m9bayonetcase.mdl")precache_model("models/knife/knife_m9bayonetcrısmon.mdl")precache_model("models/knife/knife_m9bayonetdopler.mdl")precache_model("models/knife/knife_m9bayonetıger.mdl")precache_model("models/knife/knife_m9bayonetlore.mdl")precache_model("models/knife/knife_m9bayonetmarble.mdl")precache_model("models/knife/knife_m9bayonetslaug.mdl")precache_model("models/knife/knife_navajafade.mdl")precache_model("models/knife/knife_navajacrısmon.mdl")precache_model("models/knife/knife_navajacase.mdl")precache_model("models/knife/knife_navajaslaug.mdl")precache_model("models/knife/knife_stılettocrısmos.mdl") precache_model("models/knife/knife_stılettoslaug.mdl") precache_model("models/knife/knife_stılettofade.mdl")precache_model("models/v_knife.mdl") precache_model("models/p_knife.mdl")} public knife(id) { bicakmenutr[id] = 0new Clip, Ammo, Weapon = get_user_weapon(id, Clip, Ammo) if ( Weapon == CSW_KNIFE ) { entity_set_string(id, EV_SZ_viewmodel, "models/v_knife.mdl") entity_set_string(id, EV_SZ_weaponmodel, "models/p_knife.mdl") } }  public karakmbıtcrıs(id) { bicakmenutr[id] = 1 new Clip, Ammo, Weapon = get_user_weapon(id, Clip, Ammo) if ( Weapon == CSW_KNIFE ) { entity_set_string(id, EV_SZ_viewmodel, "models/knife_karambıtcrısmon.mdl") entity_set_string(id, EV_SZ_weaponmodel, "models/p_knife.mdl") } } public karambıtdopler(id) { bicakmenutr[id] = 1 new Clip, Ammo, Weapon = get_user_weapon(id, Clip, Ammo) if ( Weapon == CSW_KNIFE ) { entity_set_string(id, EV_SZ_viewmodel, "models/knife_karambıtdopler.mdl") entity_set_string(id, EV_SZ_weaponmodel, "models/p_knife.mdl") } } public kasap(id) { karambıtfade[id] = 1 new Clip, Ammo, Weapon = get_user_weapon(id, Clip, Ammo) if ( Weapon == CSW_KNIFE ) { entity_set_string(id, EV_SZ_viewmodel, "models/knife_karambıtfade.mdl") entity_set_string(id, EV_SZ_weaponmodel, "models/p_knife.mdl") } } public karambıtfade2(id) { bicakmenutr[id] = 1 new Clip, Ammo, Weapon = get_user_weapon(id, Clip, Ammo) if ( Weapon == CSW_KNIFE ) { entity_set_string(id, EV_SZ_viewmodel, "models/knife_karambıtfadee.mdl") entity_set_string(id, EV_SZ_weaponmodel, "models/p_knife.mdl") } }public karambıttıger(id) { bicakmenutr[id] = 1 new Clip, Ammo, Weapon = get_user_weapon(id, Clip, Ammo) if ( Weapon == CSW_KNIFE ) { entity_set_string(id, EV_SZ_viewmodel, "models/knife_karambıtıger.mdl") entity_set_string(id, EV_SZ_weaponmodel, "models/p_knife.mdl") } } public karambıtlore(id) { bicakmenutr[id] = 1 new Clip, Ammo, Weapon = get_user_weapon(id, Clip, Ammo) if ( Weapon == CSW_KNIFE ) { entity_set_string(id, EV_SZ_viewmodel, "models/knife_karambıtlore.mdl") entity_set_string(id, EV_SZ_weaponmodel, "models/p_knife.mdl") } }public karambıtphase(id) { bicakmenutr[id] = 1 new Clip, Ammo, Weapon = get_user_weapon(id, Clip, Ammo) if ( Weapon == CSW_KNIFE ) { entity_set_string(id, EV_SZ_viewmodel, "models/karambıtphase.mdl") entity_set_string(id, EV_SZ_weaponmodel, "models/p_knife.mdl") } }public kelebekcase(id) { bicakmenutr[id] = 1 new Clip, Ammo, Weapon = get_user_weapon(id, Clip, Ammo) if ( Weapon == CSW_KNIFE ) { entity_set_string(id, EV_SZ_viewmodel, "models/knife_kelebekcase.mdl") entity_set_string(id, EV_SZ_weaponmodel, "models/p_knife.mdl") } }public kelebekcrısmon(id) { bicakmenutr[id] = 1 new Clip, Ammo, Weapon = get_user_weapon(id, Clip, Ammo) if ( Weapon == CSW_KNIFE ) { entity_set_string(id, EV_SZ_viewmodel, "models/knife_kelebekcrısmon.mdl") entity_set_string(id, EV_SZ_weaponmodel, "models/p_knife.mdl") } }public kelebekfade(id) { bicakmenutr[id] = 1 new Clip, Ammo, Weapon = get_user_weapon(id, Clip, Ammo) if ( Weapon == CSW_KNIFE ) { entity_set_string(id, EV_SZ_viewmodel, "models/nicomedia/knife_kelebekfade.mdl") entity_set_string(id, EV_SZ_weaponmodel, "models/p_knife.mdl") } }public kelebekdopler(id) { bicakmenutr[id] = 1 new Clip, Ammo, Weapon = get_user_weapon(id, Clip, Ammo) if ( Weapon == CSW_KNIFE ) { entity_set_string(id, EV_SZ_viewmodel, "models/knife_kelebekdopler.mdl") entity_set_string(id, EV_SZ_weaponmodel, "models/p_knife.mdl") } } public kelebekmarbıl(id) { bicakmenutr[id] = 1 new Clip, Ammo, Weapon = get_user_weapon(id, Clip, Ammo) if ( Weapon == CSW_KNIFE ) { entity_set_string(id, EV_SZ_viewmodel, "models/knife_kelebekmarbl.mdl") entity_set_string(id, EV_SZ_weaponmodel, "models/p_knife.mdl") } } public kelebekphase(id) { bicakmenutr[id] = 1 new Clip, Ammo, Weapon = get_user_weapon(id, Clip, Ammo) if ( Weapon == CSW_KNIFE ) { entity_set_string(id, EV_SZ_viewmodel, "models/knife_kelebekphase.mdl") entity_set_string(id, EV_SZ_weaponmodel, "models/p_knife.mdl") } }public bayonetautot(id) { bicakmenutr[id] = 1 new Clip, Ammo, Weapon = get_user_weapon(id, Clip, Ammo) if ( Weapon == CSW_KNIFE ) { entity_set_string(id, EV_SZ_viewmodel, "models/knife_m9bayonetautot.mdl") entity_set_string(id, EV_SZ_weaponmodel, "models/p_knife.mdl") } }public bayonetcase(id) { bicakmenutr[id] = 1 new Clip, Ammo, Weapon = get_user_weapon(id, Clip, Ammo) if ( Weapon == CSW_KNIFE ) { entity_set_string(id, EV_SZ_viewmodel, "models/knife_m9bayonetcase.mdl") entity_set_string(id, EV_SZ_weaponmodel, "models/p_knife.mdl") } } public bayonetcrısmon(id) { bicakmenutr[id] = 1 new Clip, Ammo, Weapon = get_user_weapon(id, Clip, Ammo) if ( Weapon == CSW_KNIFE ) { entity_set_string(id, EV_SZ_viewmodel, "models/knife_m9bayonetcrısmon.mdl") entity_set_string(id, EV_SZ_weaponmodel, "models/p_knife.mdl") } } public bayonetdopler(id) { bicakmenutr[id] = 1 new Clip, Ammo, Weapon = get_user_weapon(id, Clip, Ammo) if ( Weapon == CSW_KNIFE ) { entity_set_string(id, EV_SZ_viewmodel, "models/knife_m9bayonetdopler.mdl") entity_set_string(id, EV_SZ_weaponmodel, "models/p_knife.mdl") } }  public bayonetıger(id) { bicakmenutr[id] = 1 new Clip, Ammo, Weapon = get_user_weapon(id, Clip, Ammo) if ( Weapon == CSW_KNIFE ) { entity_set_string(id, EV_SZ_viewmodel, "models/nknife_m9bayonetıger.mdl") entity_set_string(id, EV_SZ_weaponmodel, "models/p_knife.mdl") } } public bayonetlore(id) { bicakmenutr[id] = 1 new Clip, Ammo, Weapon = get_user_weapon(id, Clip, Ammo) if ( Weapon == CSW_KNIFE ) { entity_set_string(id, EV_SZ_viewmodel, "models/knife_m9bayonetlore.mdl") entity_set_string(id, EV_SZ_weaponmodel, "models/p_knife.mdl") } } public bayonetmarbıl(id) { bicakmenutr[id] = 1 new Clip, Ammo, Weapon = get_user_weapon(id, Clip, Ammo) if ( Weapon == CSW_KNIFE ) { entity_set_string(id, EV_SZ_viewmodel, "models/knife_m9bayonetmarble.mdl") entity_set_string(id, EV_SZ_weaponmodel, "models/p_knife.mdl") } } public bayonetslaug(id) { bicakmenutr[id] = 1 new Clip, Ammo, Weapon = get_user_weapon(id, Clip, Ammo) if ( Weapon == CSW_KNIFE ) { entity_set_string(id, EV_SZ_viewmodel, "models/knife_m9bayonetslaug.mdl") entity_set_string(id, EV_SZ_weaponmodel, "models/p_knife.mdl") } }public navajafade(id) { bicakmenutr[id] = 1 new Clip, Ammo, Weapon = get_user_weapon(id, Clip, Ammo) if ( Weapon == CSW_KNIFE ) { entity_set_string(id, EV_SZ_viewmodel, "models/knife_navajafade.mdl") entity_set_string(id, EV_SZ_weaponmodel, "models/p_knife.mdl") } }   public navajacrısmon(id) { bicakmenutr[id] = 1 new Clip, Ammo, Weapon = get_user_weapon(id, Clip, Ammo) if ( Weapon == CSW_KNIFE ) { entity_set_string(id, EV_SZ_viewmodel, "models/knife_navajacrısmon.mdl") entity_set_string(id, EV_SZ_weaponmodel, "models/p_knife.mdl") } }   public navajaslaug(id) { bicakmenutr[id] = 1 new Clip, Ammo, Weapon = get_user_weapon(id, Clip, Ammo) if ( Weapon == CSW_KNIFE ) { entity_set_string(id, EV_SZ_viewmodel, "models/knife_navajaslaug.mdl") entity_set_string(id, EV_SZ_weaponmodel, "models/p_knife.mdl") } }   public stılettocrısmos(id) { bicakmenutr[id] = 1 new Clip, Ammo, Weapon = get_user_weapon(id, Clip, Ammo) if ( Weapon == CSW_KNIFE ) { entity_set_string(id, EV_SZ_viewmodel, "models/knife_stılettocrısmos.mdl") entity_set_string(id, EV_SZ_weaponmodel, "models/p_knife.mdl") }}public navajacase(id) { bicakmenutr[id] = 1 new Clip, Ammo, Weapon = get_user_weapon(id, Clip, Ammo) if ( Weapon == CSW_KNIFE ) { entity_set_string(id, EV_SZ_viewmodel, "models/knife_navajacase.mdl") entity_set_string(id, EV_SZ_weaponmodel, "models/p_knife.mdl") } }   public stılettoslaug(id) { bicakmenutr[id] = 1 new Clip, Ammo, Weapon = get_user_weapon(id, Clip, Ammo) if ( Weapon == CSW_KNIFE ) { entity_set_string(id, EV_SZ_viewmodel, "models/knife_stılettoslaug.mdl") entity_set_string(id, EV_SZ_weaponmodel, "models/p_knife.mdl") } }      public stılettofade(id) { bicakmenutr[id] = 1 new Clip, Ammo, Weapon = get_user_weapon(id, Clip, Ammo) if ( Weapon == CSW_KNIFE ) { entity_set_string(id, EV_SZ_viewmodel, "models/knife_stılettofade.mdl") entity_set_string(id, EV_SZ_weaponmodel, "models/p_knife.mdl") } }      public bicakmenureklam() { chat_color(0,"!t[ ~ DnaystGame ~ ] !gBedava Bicak Almak Icin !t/knifemenu !gYaziniz ..!")chat_color(0,"!t[ ~ DnaystGame ~ ] !gBicak Plugini Hakkinda Bilgi Icin !t/knifenedir !gYaziniz ..!") } stock chat_color(const id, const input[], any:...) {new count = 1, players[32]static msg[191]vformat(msg, 190, input, 3)replace_all(msg, 190, "!g", "^4")replace_all(msg, 190, "!y", "^1")replace_all(msg, 190, "!t", "^3")replace_all(msg, 190, "!team2", "^0")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, get_user_msgid("SayText"), _, players[i])write_byte(players[i]);write_string(msg);message_end();}}}/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE*{ rtf1 ansi ansicpg1254 deff0 deflang1055{ fonttbl{ f0 fnil Tahoma;}}n viewkind4 uc1 pard f0 fs16 n par }*/
Buda aldığım hata Compile ederken
Alıntı:/tmp/textFScf1c.sma(20) : error 017: undefined symbol "knifemenu"
/tmp/textFScf1c.sma(20) : warning 215: expression has no effect
/tmp/textFScf1c.sma(20) : error 001: expected token: ";", but found "]"
/tmp/textFScf1c.sma(20) : error 029: invalid expression, assumed zero
/tmp/textFScf1c.sma(20) : fatal error 107: too many error messages on one line



#2
Forum kurallarına aykırı olduğun için konunuz silinmiştir .


Bir Hata Söz Konusu Olursa Bizlere Ulaşarak Düzeltebilirsiniz.






Bir hesap oluşturun veya yorum yapmak için giriş yapın

Yorum yapmak için üye olmanız gerekiyor

ya da

Konu ile Alakalı Benzer Konular
Konular Yazar Yorumlar Okunma Son Yorum
Silinmiş Konu   | Steam , Whatsapp icon yardım Brs.16 3 410 18-09-2020, Saat: 14:50
Son Yorum: JwG
Silinmiş Konu   | [yardım] CS 1.6 THOOK MelihCetinn 1 195 14-09-2020, Saat: 10:28
Son Yorum: By.KinG
Silinmiş Konu   | hata yardım !!! Mikkel 2 334 04-01-2020, Saat: 16:49
Son Yorum: By.KinG
Silinmiş Konu   | eklenti acil yardım Mikkel 1 295 04-01-2020, Saat: 14:23
Son Yorum: By.KinG
Silinmiş Konu   | hata yardım !!! Mikkel 5 408 19-12-2019, Saat: 21:52
Son Yorum: By.KinG

Task