I don't know why I got this error:
Code:
L 01/26/2023 - 01:10:18: [SM] Exception reported: Client index 540024864 is invalid (arg 3)
L 01/26/2023 - 01:10:18: [SM] Blaming: IA_l4d2.smx
L 01/26/2023 - 01:10:18: [SM] Call stack trace:
L 01/26/2023 - 01:10:18: [SM] [0] PrintToServer
L 01/26/2023 - 01:10:18: [SM] [1] Line 14783, J:\IA\SourceMod\scripting\IA_l4d2.ia::StoreData
L 01/26/2023 - 01:10:18: [SM] [2] Line 4525, J:\IA\SourceMod\scripting\IA_l4d2.ia::DH_ChangeLevelNow
L 01/26/2023 - 01:10:20: Error log file session closed.
PHP Code:
MRESReturn DH_ChangeLevelNow(Address p)
{
for(i=1;i<=MaxClients;i++)
{
if(!IsClientInGame(i)) continue
if(GetClientTeam(i) == 2)
{
CheckMiniGun(i)
if(!IsFakeClient(i)) iClientState[i]|=Cl_Transition
StoreData(i, sSteamID[i], true)
}
if(pPlayerReporter[i])
{
UpdateMissionData(i)
SaveCacheData(i, false)
}
}
}
int StoreData(a, const char[]n, bool b)
{
if(b)
{
if(GetClientAttacker(a)) StaggerPlayer(a, a)
if(IsIncap(a)) SDKCall(hRevivedPlayer, a)
}
int e = GetPlayerWeaponSlot(a, 5)
if(e != -1 && !strcmp(EntName[e][7], "gascan") && GetEntProp(e, Prop_Send, "m_nSkin")) SDKHooks_DropWeapon(a, e, Float:{0.0,0.0,0.0})
char s[SAVESIZE]
DataToString(a, s)
Format(s, SAVESIZE, "%s %f %s", n[0]=='S'?n:"BOT", n[0]=='S'?GetEngineTime()+90.0:0.0, s)
PrintToServer("Packed Data (%i.%N): %s", a, a, s)
return hAdata.PushString(s)
}
And sometimes I got this error, the property transmit unrecognizable characters.
Code:
L 01/24/2023 - 22:06:15: [SM] Exception reported: Property "?:?Y" not found (entity 3/player)
L 01/24/2023 - 22:06:15: [SM] Blaming: IA_l4d2.smx
L 01/24/2023 - 22:06:15: [SM] Call stack trace:
L 01/24/2023 - 22:06:15: [SM] [0] GetEntProp
L 01/24/2023 - 22:06:15: [SM] [1] Line 17435, J:\IA\SourceMod\scripting\IA_l4d2.ia::UpdateMissionData
L 01/24/2023 - 22:06:15: [SM] [2] Line 4513, J:\IA\SourceMod\scripting\IA_l4d2.ia::DH_ChangeLevelNow
PHP Code:
void UpdateMissionData(a)
{
SetEntProp(a, Prop_Send, "m_missionSurvivorDamage", GetEntProp(a, Prop_Send, "m_missionSurvivorDamage")+GetEntProp(a, Prop_Send, "m_checkpointSurvivorDamage"))
}
These events are randomly happen, It's this because I hook too many detours?