Raised This Month: $32 Target: $400
 8% 

[BUG?] index disorder problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
iaNanaNana
Member
Join Date: Sep 2020
Location: Two-dimensional
Old 01-26-2023 , 05:43   [BUG?] index disorder problem
Reply With Quote #1

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
(isSteamID[i], true)
        }
        if(
pPlayerReporter[i])
        {
            
UpdateMissionData(i)
            
SaveCacheData(ifalse)
        }
    }
}
int StoreData(a, const char[]nbool b)
{
    if(
b)
    {
        if(
GetClientAttacker(a)) StaggerPlayer(aa)
        if(
IsIncap(a)) SDKCall(hRevivedPlayera)
    }
    
int e GetPlayerWeaponSlot(a5)
    if(
!= -&& !strcmp(EntName[e][7], "gascan") && GetEntProp(eProp_Send"m_nSkin")) SDKHooks_DropWeapon(aeFloat:{0.0,0.0,0.0})
    
char s[SAVESIZE]
    
DataToString(as)
    
Format(sSAVESIZE"%s %f %s"n[0]=='S'?n:"BOT"n[0]=='S'?GetEngineTime()+90.0:0.0s)
    
PrintToServer("Packed Data (%i.%N): %s"aas)
    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(aProp_Send"m_missionSurvivorDamage"GetEntProp(aProp_Send"m_missionSurvivorDamage")+GetEntProp(aProp_Send"m_checkpointSurvivorDamage"))

These events are randomly happen, It's this because I hook too many detours?
iaNanaNana is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 01-26-2023 , 09:28   Re: [BUG?] index disorder problem
Reply With Quote #2

you have not set data type. Not sure do also second parameter give bug when there is no space.
*edit
Also in loop, you have not set data type int. I think you need look your whole code again.

PHP Code:
int StoreData(a, const char[]nbool b)

//fixed ?
int StoreData(int a, const char[] nbool b
__________________
Do not Private Message @me

Last edited by Bacardi; 01-26-2023 at 09:31.
Bacardi is offline
iaNanaNana
Member
Join Date: Sep 2020
Location: Two-dimensional
Old 01-26-2023 , 09:32   Re: [BUG?] index disorder problem
Reply With Quote #3

Quote:
Originally Posted by Bacardi View Post
you have not set data type. Not sure do also second parameter give bug when there is no space.
PHP Code:
int StoreData(a, const char[]nbool b)

//fixed ?
int StoreData(int a, const char[] nbool b
It's this reason for that bug? but never happen before
iaNanaNana is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 01-26-2023 , 09:32   Re: [BUG?] index disorder problem
Reply With Quote #4

I update my previous post
__________________
Do not Private Message @me
Bacardi is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:11.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode