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

[L4D2] MVP bug


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
raizo11
BANNED
Join Date: Dec 2013
Location: https://t.me/pump_upp
Old 04-17-2021 , 09:23   [L4D2] MVP bug
Reply With Quote #1

someone wants to fix this bug?

Code:
L 04/17/2021 - 15:17:43: [SM] Exception reported: Array index out-of-bounds (index 4, limit 4)
L 04/17/2021 - 15:17:43: [SM] Blaming: survivor_mvp.smx
L 04/17/2021 - 15:17:43: [SM] Call stack trace:
L 04/17/2021 - 15:17:43: [SM]   [1] Line 1367, plugin.sp::GetMVPString
L 04/17/2021 - 15:17:43: [SM]   [2] Line 628, plugin.sp::delayedMVPPrint
Attached Files
File Type: sp Get Plugin or Get Source (survivor_mvp.sp - 54 views - 59.6 KB)
raizo11 is offline
Send a message via ICQ to raizo11 Send a message via AIM to raizo11 Send a message via MSN to raizo11 Send a message via Yahoo to raizo11 Send a message via Skype™ to raizo11
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 04-17-2021 , 09:58   Re: [L4D2] MVP bug
Reply With Quote #2

4+ players servers?

Seem that the array is hardcoded to 4 (survivors) x 4 (infected)

You can try searching for "[4]" and "[3]" in the plugin and change to your servers values

[4] = max players
[3] = max players-1

Didn't make a full read to the code cause is 1.5k lines
__________________
Marttt is offline
raizo11
BANNED
Join Date: Dec 2013
Location: https://t.me/pump_upp
Old 04-17-2021 , 10:30   Re: [L4D2] MVP bug
Reply With Quote #3

LINE 1367

Code:
mpv_done[j - 1] = i;    // track so we can fall back on 'getSurvivor' approach on empty stats
raizo11 is offline
Send a message via ICQ to raizo11 Send a message via AIM to raizo11 Send a message via MSN to raizo11 Send a message via Yahoo to raizo11 Send a message via Skype™ to raizo11
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 04-17-2021 , 12:00   Re: [L4D2] MVP bug
Reply With Quote #4

Not answered my question. Has more than 4 survivors in the server?
The array is fixed on 4, so if you have 5+ survivors most likely it will break.
__________________
Marttt 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 11:27.


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