Zamieniłem wszystkie odpowiadające za to linijki z
if(inteligencja_gracza[id] < limit_poziomu/2)
na
if(inteligencja_gracza[id] + inteligencja_klas[klasa_gracza[id]] < 150)
To działało, ale wgrałem jeszcze dodawanie po 10 i wszystko w staty i nie chce się sma skompilować. Takie są błędy:
Welcome to the AMX Mod X 1.8.1-300 Compiler. Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team QTM_CodMod.sma(878) : error 022: must be lvalue (non-constant) QTM_CodMod.sma(878) : warning 215: expression has no effect QTM_CodMod.sma(882) : error 022: must be lvalue (non-constant) QTM_CodMod.sma(882) : warning 215: expression has no effect QTM_CodMod.sma(898) : error 022: must be lvalue (non-constant) QTM_CodMod.sma(898) : warning 215: expression has no effect QTM_CodMod.sma(902) : error 022: must be lvalue (non-constant) QTM_CodMod.sma(902) : warning 215: expression has no effect QTM_CodMod.sma(916) : error 022: must be lvalue (non-constant) QTM_CodMod.sma(916) : warning 215: expression has no effect QTM_CodMod.sma(920) : error 022: must be lvalue (non-constant) QTM_CodMod.sma(920) : warning 215: expression has no effect QTM_CodMod.sma(935) : error 022: must be lvalue (non-constant) QTM_CodMod.sma(935) : warning 215: expression has no effect QTM_CodMod.sma(939) : error 022: must be lvalue (non-constant) QTM_CodMod.sma(939) : warning 215: expression has no effect QTM_CodMod.sma(952) : warning 204: symbol is assigned a value that is never used: "limit_poziomu" 8 Errors. Could not locate output file QTM_CodMod.amxx (compile failed).
Sma w załączniku.