Code:
amxx version
AMX Mod X 1.8.3-dev+4968 (http://www.amxmodx.org)
Code:
[ 42] Just Capture the Flag 1.32c Digi jctf_noorpheu.amxx debug
I named it jctf_noorpheu.amxx because i disabled Orpheu module, but haven't changed anything in the code other than the CHAT_PREFIX.
Code:
L 12/17/2015 - 16:37:28: Start of error session.
L 12/17/2015 - 16:37:28: Info (map "fy_snow_dew") (file "addons/amxmodx/logs/error_20151217.log")
L 12/17/2015 - 16:37:28: [ENGINE] Invalid entity 90
L 12/17/2015 - 16:37:28: [AMXX] Displaying debug trace (plugin "jctf_noorpheu.amxx", version "1.32c")
L 12/17/2015 - 16:37:28: [AMXX] Run time error 10: native error (native "find_ent_by_class")
L 12/17/2015 - 16:37:28: [AMXX] [0] jctf_noorpheu.sma::event_roundStart (line 4912)
L 12/17/2015 - 17:08:34: Start of error session.
L 12/17/2015 - 17:08:34: Info (map "de_dust2") (file "addons/amxmodx/logs/error_20151217.log")
L 12/17/2015 - 17:08:34: [ENGINE] Invalid entity 123
L 12/17/2015 - 17:08:34: [AMXX] Displaying debug trace (plugin "jctf_noorpheu.amxx", version "1.32c")
L 12/17/2015 - 17:08:34: [AMXX] Run time error 10: native error (native "find_ent_by_class")
L 12/17/2015 - 17:08:34: [AMXX] [0] jctf_noorpheu.sma::event_roundStart (line 4912)
L 12/17/2015 - 17:09:00: [ENGINE] Invalid entity 123
L 12/17/2015 - 17:09:00: [AMXX] Displaying debug trace (plugin "jctf_noorpheu.amxx", version "1.32c")
L 12/17/2015 - 17:09:00: [AMXX] Run time error 10: native error (native "find_ent_by_class")
L 12/17/2015 - 17:09:00: [AMXX] [0] jctf_noorpheu.sma::event_roundStart (line 4912)
Code:
Line 4912
while((ent = find_ent_by_class(ent, ITEM_CLASSNAME)) > 0)
PHP Code:
public event_restartGame()
g_bRestarting = true
public event_roundStart()
{
new ent = -1
while((ent = find_ent_by_class(ent, WEAPONBOX)) > 0)
{
task_remove(ent)
weapon_remove(ent)
}
ent = -1
while((ent = find_ent_by_class(ent, ITEM_CLASSNAME)) > 0)
{
task_remove(ent)
entity_remove(ent)
}
for(new id = 1; id < g_iMaxPlayers; id++)
{
if(!g_bAlive[id])
continue
g_bDefuse[id] = false
g_bFreeLook[id] = false
g_fLastBuy[id] = Float:{0.0, 0.0, 0.0, 0.0}
task_remove(id - TASK_EQUIPAMENT)
task_remove(id - TASK_TEAMBALANCE)
task_remove(id - TASK_DEFUSE)
if(g_bRestarting)
{
task_remove(id)
task_remove(id - TASK_ADRENALINE)
g_bRestarted[id] = true
g_iAdrenaline[id] = 0
g_iAdrenalineUse[id] = 0
}
player_updateSpeed(id)
}
for(new iFlagTeam = TEAM_RED; iFlagTeam <= TEAM_BLUE; iFlagTeam++)
{
flag_sendHome(iFlagTeam)
task_remove(g_iFlagEntity[iFlagTeam])
log_message("%s, %s flag returned back to base.", (g_bRestarting ? "Game restarted" : "New round started"), g_szTeamName[iFlagTeam])
}
if(g_bRestarting)
{
g_iScore = {0,0,0}
g_bRestarting = false
}
}
Server runs for about 2-3 maps until it crashes. Map Spawn Editor plugin was also giving me a similar error related to find_ent_by_class but i forgot to debug it.