Всем доброго времени суток .сделал шоп меню для кнайф сервера .а меню не компелируется кто сможет помогите При компилирование выбивает Welcome to the AMX Mod X 1.8.1-300 Compiler. Copyright (c) 1997-2013 ITB CompuPhase, AMX Mod X Team shop.sma(89) : error 014: invalid statement; not in switch shop.sma(89) : warning 215: expression has no effect shop.sma(89) : error 001: expected token: ";", but found ":" shop.sma(89) : error 029: invalid expression, assumed zero shop.sma(89) : fatal error 107: too many error messages on one line Compilation aborted. 4 Errors. Done. Спойлер [background='']#include #include #include #include #include #include #pragma tabsize 0 new keysmenu = (1
shapind.sma(174) : error 002: only a single statement (or expression) can follow each "case" shapind.sma(180) : error 010: invalid function or declaration shapind.sma(182) : error 010: invalid function or declaration shapind.sma(184) : error 021: symbol already defined: "client_cmd" shapind.sma(185) : error 021: symbol already defined: "set_dhudmessage" shapind.sma(185) : warning 215: expression has no effect shapind.sma(185) : error 012: invalid function call, not a valid address shapind.sma(187) : error 021: symbol already defined: "show_dhudmessage" shapind.sma(188) : warning 209: function "show_dhudmessage" should return a value shapind.sma(188) : error 054: unmatched closing brace shapind.sma(189) : error 010: invalid function or declaration shapind.sma(191) : error 021: symbol already defined: "set_dhudmessage" shapind.sma(191) : warning 215: expression has no effect shapind.sma(191) : error 012: invalid function call, not a valid address shapind.sma(193) : error 021: symbol already defined: "show_dhudmessage" shapind.sma(193) : error 029: invalid expression, assumed zero shapind.sma(195) : error 010: invalid function or declaration 14 Errors. Could not locate output file shapind.amx (compile failed). Жду не дождусь когда вы мне его напишите
Да ,вот сижу голову ломаю .времени нету ) shapind.sma(174) : error 002: only a single statement (or expression) can follow each "case" shapind.sma(180) : error 010: invalid function or declaration shapind.sma(182) : error 010: invalid function or declaration shapind.sma(184) : error 021: symbol already defined: "client_cmd" shapind.sma(185) : error 021: symbol already defined: "set_dhudmessage" shapind.sma(185) : warning 215: expression has no effect shapind.sma(185) : error 012: invalid function call, not a valid address shapind.sma(187) : error 021: symbol already defined: "show_dhudmessage" shapind.sma(188) : warning 209: function "show_dhudmessage" should return a value shapind.sma(188) : error 054: unmatched closing brace shapind.sma(189) : error 010: invalid function or declaration shapind.sma(191) : error 021: symbol already defined: "set_dhudmessage" shapind.sma(191) : warning 215: expression has no effect shapind.sma(191) : error 012: invalid function call, not a valid address shapind.sma(193) : error 021: symbol already defined: "show_dhudmessage" shapind.sma(193) : error 029: invalid expression, assumed zero shapind.sma(195) : error 010: invalid function or declaration 14 Errors. Could not locate output file shapind.amx (compile failed). Жду не дождусь когда вы мне его напишите
я по исправлял .что нашел ,вот что теперь пишет shop.sma(170) : error 014: invalid statement; not in switch shop.sma(170) : warning 215: expression has no effect shop.sma(170) : error 001: expected token: ";", but found ":" shop.sma(170) : error 029: invalid expression, assumed zero shop.sma(170) : fatal error 107: too many error messages on one line
все сделал, скомпелировал .но CASE 5 не работает ,как его сделать ? подскажите пожалуйста и case 3: там дигл с 1 патроном должен быть ,а там 7 патронов Код: case 3: { if(cs_get_user_money(id) >= 12000) { give_item(id,"weapon_deagle") cs_set_user_bpammo(id, CSW_DEAGLE, 1) set_dhudmessage(random_num(0, 255), random_num(0, 255), random_num(0, 255), 0.01, 0.50, 0, 6.0, 8.0, 1.0, 1.5) show_dhudmessage( id, "Р’С‹ купили Дигл(1 патрон)!" ) cs_set_user_money(id, cs_get_user_money(id) - 12000) } else { set_dhudmessage(random_num(0, 255), random_num(0, 255), random_num(0, 255), 0.01, 0.50, 0, 6.0, 8.0, 1.0, 1.5) show_dhudmessage( id, "РЈ вас РЅРµ хватает денег!" ) } } case 4: { if(cs_get_user_money(id) >= 10000) { ExecuteHamB(Ham_CS_RoundRespawn, id) set_dhudmessage(random_num(0, 255), random_num(0, 255), random_num(0, 255), 0.01, 0.50, 0, 6.0, 8.0, 1.0, 1.5) show_dhudmessage( id, "Р’С‹ купили Воскрешение !" ) cs_set_user_money(id, cs_get_user_money(id) - 10000) } else { set_dhudmessage(random_num(0, 255), random_num(0, 255), random_num(0, 255), 0.01, 0.50, 0, 6.0, 8.0, 1.0, 1.5) show_dhudmessage( id, "РЈ вас РЅРµ хватает денег!" ) } } case 5: { if(cs_get_user_money(id) >= 14500) { give_item(id, "weapon_hegrenade") set_dhudmessage(random_num(0, 255), random_num(0, 255), random_num(0, 255), 0.01, 0.50, 0, 6.0, 8.0, 1.0, 1.5) show_dhudmessage( id, "Р’С‹ купили Осколочную Гранату!" ) cs_set_user_money(id, cs_get_user_money(id) - 14500) } else { set_dhudmessage(random_num(0, 255), random_num(0, 255), random_num(0, 255), 0.01, 0.50, 0, 6.0, 8.0, 1.0, 1.5) show_dhudmessage( id, "РЈ вас РЅРµ хватает денег!" ) } } case 6: { if(cs_get_user_money(id) >= 4500) { client_cmd(id, "kill") set_dhudmessage(random_num(0, 255), random_num(0, 255), random_num(0, 255), 0.01, 0.50, 0, 6.0, 8.0, 1.0, 1.5) show_dhudmessage( id, "Р’С‹ разбились))!" ) cs_set_user_money(id, cs_get_user_money(id) + 4500) } else { set_dhudmessage(random_num(0, 255), random_num(0, 255), random_num(0, 255), 0.01, 0.50, 0, 6.0, 8.0, 1.0, 1.5) show_dhudmessage( id, "РЈ вас РЅРµ хватает денег!" ) } } } return PLUGIN_HANDLED }