Raised This Month: $51 Target: $400
 12% 

Round End Events - FINAL VERSION RELEASED


Post New Thread Reply   
 
Thread Tools Display Modes
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 12-10-2022 , 23:52   Re: Round End Events - FINAL VERSION RELEASED
Reply With Quote #121

Well tell me which line the index out of bounds was, I forgot.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
Siska1
Senior Member
Join Date: Feb 2020
Location: BedRock
Old 12-14-2022 , 02:21   Re: Round End Events - FINAL VERSION RELEASED
Reply With Quote #122

Quote:
Originally Posted by EFFx View Post
Well tell me which line the index out of bounds was, I forgot.
Displaying debug trace (plugin "RoundEndEvents_hud.amxx", version "2.4")
Run time error 4: index out of bounds
[0] RoundEndEvents_hud.sma:: Player_TraceAttack (line 369)

[0] RoundEndEvents_hud.sma::getAccuracy (line 1578 )
[1] RoundEndEvents_hud.sma::getPlayerAccuracy (line 1583)
[2] RoundEndEvents_hud.sma::RoundEnd (line 903)

errors started appearing on almost every map
__________________

Last edited by Siska1; 12-14-2022 at 20:11.
Siska1 is offline
Send a message via Skype™ to Siska1
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 12-15-2022 , 00:28   Re: Round End Events - FINAL VERSION RELEASED
Reply With Quote #123

PHP Code:
public Player_TraceAttack(iEntiAttackerFloat:flDamageFloat:fDir[3], ptriDamageType)
{
        if(!
is_user_connected(iEnt) || !is_user_connected(iAttacker))
            return 
HAM_IGNORED

        
if((iDamageType DMG_BULLET))
        {
            new 
Float:fEnd[3]
            
get_tr2(ptrTR_vecEndPosfEnd)
            
            
g_bLastAttackWasWall[iEnt][iAttacker] = bool:!ExecuteHam(Ham_FVecVisibleiAttackerfEnd)
        }
        else
        {
            
g_bLastAttackWasWall[iEnt][iAttacker] = false
        
}
        return 
HAM_IGNORED

Try that part about the TraceAttack.

PHP Code:
getAccuracy(iTeam)
{
    if(!(
TERRORIST <= iTeam <= CT))
        return 
0

    
return floatround(100.0 float(g_iHitsDone[iTeam]) / float(g_iShootsFired[iTeam]))
}

getPlayerAccuracy(index)
{
    if(!
is_user_connected(index))
        return 
0
        
    
return min(floatround(100.0 float(PlayerData[index][arPlayerHits]) / float(PlayerData[index][arPlayerShoots])), 100)

Also I'm still confused about those last two, but use this instead.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 12-15-2022 at 00:32.
EFFx is offline
Siska1
Senior Member
Join Date: Feb 2020
Location: BedRock
Old 12-16-2022 , 03:32   Re: Round End Events - FINAL VERSION RELEASED
Reply With Quote #124

[0] RoundEndEvents_hud.sma::eventReaderAndRegiste r (line 1652)
[1] RoundEndEvents_hud.sma::plugin_init (line 277)
__________________
Siska1 is offline
Send a message via Skype™ to Siska1
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 12-16-2022 , 04:19   Re: Round End Events - FINAL VERSION RELEASED
Reply With Quote #125

Which line is that? It's different for me I'm pretty sure.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
Siska1
Senior Member
Join Date: Feb 2020
Location: BedRock
Old 12-16-2022 , 05:13   Re: Round End Events - FINAL VERSION RELEASED
Reply With Quote #126

Code:
eventReaderAndRegister()

Code:
set_fail_state(szFmt)
I use kill assistance, could this be a problem?
__________________
Siska1 is offline
Send a message via Skype™ to Siska1
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 12-16-2022 , 05:19   Re: Round End Events - FINAL VERSION RELEASED
Reply With Quote #127

I don't even know what the error was. You just showed me two random lines and removed the error information.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
Siska1
Senior Member
Join Date: Feb 2020
Location: BedRock
Old 12-16-2022 , 08:38   Re: Round End Events - FINAL VERSION RELEASED
Reply With Quote #128

Quote:
Originally Posted by EFFx View Post
I don't even know what the error was. You just showed me two random lines and removed the error information.
sorry, I was confused, here is the error :
Code:
L 12/16/2022 - 15:34:15: [AMXX] Run time error 4: index out of bounds 
L 12/16/2022 - 15:34:15: [AMXX]    [0] RoundEndEvents_hud.sma::saveEventMessage (line 1193)
L 12/16/2022 - 15:34:15: [AMXX]    [1] RoundEndEvents_hud.sma::RoundEnd (line 921)
__________________
Siska1 is offline
Send a message via Skype™ to Siska1
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 12-16-2022 , 23:47   Re: Round End Events - FINAL VERSION RELEASED
Reply With Quote #129

PHP Code:
    if(is_user_connected(UserVictimID))
    {
        
get_user_name(UserVictimIDszVictimNamecharsmax(szVictimName))
    }

    if(
is_user_connected(UserEventID))
    {
        
get_user_name(UserEventIDPlayerData[UserEventID][PlayerName], charsmax(PlayerData[][PlayerName]))
    } 
I forgot to check if the ID is a valid player before getting the name. It happens when the ev_GrenadesThrown event is called.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
Siska1
Senior Member
Join Date: Feb 2020
Location: BedRock
Old 12-17-2022 , 02:48   Re: Round End Events - FINAL VERSION RELEASED
Reply With Quote #130

Quote:
Originally Posted by EFFx View Post
PHP Code:
    if(is_user_connected(UserVictimID))
    {
        
get_user_name(UserVictimIDszVictimNamecharsmax(szVictimName))
    }

    if(
is_user_connected(UserEventID))
    {
        
get_user_name(UserEventIDPlayerData[UserEventID][PlayerName], charsmax(PlayerData[][PlayerName]))
    } 
I forgot to check if the ID is a valid player before getting the name. It happens when the ev_GrenadesThrown event is called.


didn't i add it correctly
__________________
Siska1 is offline
Send a message via Skype™ to Siska1
Reply



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 00:17.


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