dbmod_5.9l.sma(8888) : error 029: invalid expression, assumed zero
dbmod_5.9l.sma(8888) : warning 215: expression has no effect
dbmod_5.9l.sma(8888) : warning 215: expression has no effect
dbmod_5.9l.sma(8888) : warning 215: expression has no effect
dbmod_5.9l.sma(8888) : error 001: expected token: ";", but found ")"
dbmod_5.9l.sma(8888) : error 029: invalid expression, assumed zero
dbmod_5.9l.sma(8888) : fatal error 107: too many error messages on one line
Cały kod sma :
LeczacyBot()
{
new Bot = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "info_target"));
if (Bot)
{
set_pev(Bot, pev_classname, "Regeneracja");
dllfunc(DLLFunc_Spawn, Bot);
set_pev(Bot, pev_nextthink, get_gametime() + 5.0);
}
}
public RegeneracjaThink(Bot)
{
new iPlayers[32], iNum, id;
get_players(iPlayers, iNum);
for(new i; i<inum; i++)="" {="" id="iPlayers[i];" if="" (!is_user_alive(id))="" continue;="" (player_regeneracja[id]="">0)
change_health(id,player_regeneracja[id]/2,0,"");
}
set_pev(Bot, pev_nextthink, get_gametime() + 5.0);
}
Linia 8888 :
change_health(id,player_regeneracja[id]/2,0,"");