Mam problem z itemem i klasą, podnoszenie broni.
zrobiłem coś takiego
public DotykBroni(weapon,id) { new model[23]; entity_get_string(weapon, EV_SZ_model, model, 22); if (!is_user_connected(id) || entity_get_edict(weapon, EV_ENT_owner) == id || equal(model, "models/w_backpack.mdl") || klasa_gracza[id] == Champion || if(informacje_przedmiotu_gracza[id][0] == 37) return HAM_IGNORED; return HAM_SUPERCEDE; }
są errory i warningi
Welcome to the AMX Mod X 1.8.1-300 Compiler. Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team QTM_CodMod.sma(2079) : error 029: invalid expression, assumed zero QTM_CodMod.sma(2079 -- 2080) : warning 215: expression has no effect QTM_CodMod.sma(2080) : warning 217: loose indentation QTM_CodMod.sma(2081) : warning 225: unreachable code QTM_CodMod.sma(2081) : warning 217: loose indentation 1 Error. Could not locate output file QTM_CodMod.amxx (compile failed).
a jak zrobie:
jak to naprawić?
Pozdrawiam