Problem z kompilacją menu
Najlepsza odpowiedź v139 14.09.2014 22:01
dzięki chlopaki wielkie, wejde na komputer to plusy dam
Przejdź do postu
v139
13.09.2014
Cześć, po kompilacji menu wyskakują mi takie błędy:
tryby.sma(21) : error 017: undefined symbol "MyMenu" tryby.sma(21) : warning 215: expression has no effect tryby.sma(21) : warning 215: expression has no effect tryby.sma(21) : warning 215: expression has no effect tryby.sma(21) : warning 215: expression has no effect tryby.sma(21) : error 001: expected token: ";", but found ")" tryby.sma(21) : error 029: invalid expression, assumed zero tryby.sma(21) : fatal error 107: too many error messages on one line Compilation aborted. 4 Errors.
Kod pluginu:
Spoiler
Proszę o pomoc!
Użytkownik v139 edytował ten post 13.09.2014 15:35
Dziobak?
14.09.2014
łap, trochę poprawiłem }
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <fun> #include <amxmisc> #define PLUGIN "New Plug-In" #define VERSION "1.0" #define AUTHOR "Badyl" new gMyMenu; public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_clcmd("say !tryby","mymenu"); register_event("HLTV", "Nowa_Runda", "a", "1=0", "2=0") gMyMenu=menu_create("Tryby","cbMyMenu"); new MyMenuFun=menu_makecallback("mcbMyMenu"); menu_additem(gMyMenu,"Tryb Medyka (2500$)","",0,MyMenuFun);//item=0 menu_additem(gMyMenu,"Tryb Cichego (1000$)","",0,MyMenuFun);//item=1 } public mymenu(id) { /*if(!(get_user_flags(id) & ADMIN_BAN)){ client_print(id, print_chat, "Nie masz uprawnien do korzystania z tej fukcji.") return PLUGIN_HANDLED; }*/ menu_display(id, gMyMenu,0); return PLUGIN_HANDLED; } public cbMyMenu(id, menu, item) { switch(item) { case 0: { client_print(id, print_center, "Wybrales Tryb Medyka"); } case 1: { set_user_footsteps(id, 1); client_print(id, print_center, "Wybrales Tryb Cichego"); } } menu_destroy(menu); return PLUGIN_HANDLED; } public mcbMyMenu(id, menu, item) { return ITEM_ENABLED; } public Nowa_Runda(id) { set_user_footsteps(id,0) }
Użytkownik Dziobak? edytował ten post 14.09.2014 16:03
Nielegalny. 14.09.2014
Najlepsza odpowiedź
v139
14.09.2014
dzięki chlopaki wielkie, wejde na komputer to plusy dam