Welcome to the AMX Mod X 1.8.1-300 Compiler. Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team noze.sma(19) : error 029: invalid expression, assumed zero noze.sma(19 -- 20) : error 008: must be a constant expression; assumed zero noze.sma(27 -- 30) : error 008: must be a constant expression; assumed zero noze.sma(68) : error 001: expected token: "}", but found "-end of file-" 4 Errors. Could not locate output file noze.amxx (compile failed).
oto kod sma:
#include <amxmodx> #include <amxmisc> #include <fakemeta> #define PLUGIN "Menu z Nozami" #define VERSION "1.0" #define AUTHOR "Blacker" new zmiana[33]; new nazwy[][256]={ "CocaCola", "Krwawy", "Ognisty", "Złoty", "Unikalny", "Reggae", } new modele[][256]={ "models/news/v_knife.mdl", "models/news/krew.mdl", "models/news/ogien.mdl", "models/news/zloto.mdl", "models/news/unikalny.mdl", "models/news/jamajka.mdl", } public plugin_init(){ register_plugin(PLUGIN, VERSION, AUTHOR); register_clcmd("say /noz", "xmenu"); register_event("CurWeapon", "Event_Change", "be", "1=29") } public client_connected(id){ zmiana[id] = -1; } public Event_Change(id){ if(get_user_weapon(id) == 29 && zmiana[id] != -1){ set_pev(id, pev_viewmodel2, modele[zmiana[id]]); } } public xmenu(id){ new menu = menu_create("Wybierz swoj noz:", "wybieranie"); for(new i = 0 ;i<sizeof(nazwy);i++){ menu_additem(menu,nazwy[i]) } menu_setprop(menu, MPROP_EXIT, MEXIT_ALL); menu_display(id, menu, 0); } public wybieranie(id, menu, item){ if (item == MENU_EXIT){ menu_destroy(menu); return PLUGIN_HANDLED; } zmiana[id] = item; menu_destroy(menu); return PLUGIN_HANDLED;
Jeśli ktoś wie co jest przyczyną lub źle coś napisałem itp to proszę to poprawić jak można,będę bardzo wdzięczny.
Użytkownik Vixenek edytował ten post 16.02.2013 20:21