Raised This Month: $ Target: $400
 0% 

[L4D2] Infinite Ammo


Post New Thread Reply   
 
Thread Tools Display Modes
zaviier
Member
Join Date: Aug 2017
Old 07-27-2019 , 04:38   Re: [L4D2] Infinite Ammo
Reply With Quote #71

Quote:
Originally Posted by Crasher_3637 View Post
Updated to v1.5.6

- Fixed all timers.
- Used methodmap for menus.
- Too busy to update the rest of the code.
Code:
L 07/27/2019 - 15:37:29: [SM] Exception reported: Client index 19 is invalid
L 07/27/2019 - 15:37:29: [SM] Blaming: l4d2_iiammo.smx
L 07/27/2019 - 15:37:29: [SM] Call stack trace:
L 07/27/2019 - 15:37:29: [SM]   [0] IsClientConnected
L 07/27/2019 - 15:37:29: [SM]   [1] Line 617, /home/forums/content/files/1/8/1/1/6/6/172743.attach::IAmmoChanged
zaviier is offline
Crasher_3637
AlliedModders Donor
Join Date: May 2012
Old 05-07-2020 , 01:50   Re: [L4D2] Infinite Ammo
Reply With Quote #72

Quote:
Originally Posted by zaviier View Post
Code:
L 07/27/2019 - 15:37:29: [SM] Exception reported: Client index 19 is invalid
L 07/27/2019 - 15:37:29: [SM] Blaming: l4d2_iiammo.smx
L 07/27/2019 - 15:37:29: [SM] Call stack trace:
L 07/27/2019 - 15:37:29: [SM]   [0] IsClientConnected
L 07/27/2019 - 15:37:29: [SM]   [1] Line 617, /home/forums/content/files/1/8/1/1/6/6/172743.attach::IAmmoChanged
I haven't been able to reproduce that error. I'm not sure how you'd even get that considering it's inside a for-loop that loops from client 1 to MaxClients...
__________________
AFK like JFK
Crasher_3637 is offline
Silvers
AlliedModders Donor
Join Date: Aug 2010
Location: SpaceX
Old 05-07-2020 , 04:15   Re: [L4D2] Infinite Ammo
Reply With Quote #73

Quote:
Originally Posted by Crasher_3637 View Post
I haven't been able to reproduce that error. I'm not sure how you'd even get that considering it's inside a for-loop that loops from client 1 to MaxClients...
Should be checking "IsClientInGame" not "IsClientConnected" which will fail if theres no valid client connected.
__________________
Silvers is offline
Crasher_3637
AlliedModders Donor
Join Date: May 2012
Old 05-07-2020 , 06:42   Re: [L4D2] Infinite Ammo
Reply With Quote #74

Quote:
Originally Posted by Silvers View Post
Should be checking "IsClientInGame" not "IsClientConnected" which will fail if theres no valid client connected.
Ah, got it. I suppose I'll update the code since the original author isn't even active anymore.
__________________
AFK like JFK
Crasher_3637 is offline
Silvers
AlliedModders Donor
Join Date: Aug 2010
Location: SpaceX
Old 05-07-2020 , 06:47   Re: [L4D2] Infinite Ammo
Reply With Quote #75

Actually that error is probably caused by another plugin creating invalid clients (such as adding more bots etc). But "IsClientInGame" should still be used because afterward "PrintToChat" is used which I think would error if the client is connected but not in-game.
__________________
Silvers is offline
KleinMarquez
Senior Member
Join Date: Jun 2016
Location: Calapan City, Philippine
Old 06-01-2020 , 08:46   Re: [L4D2] Infinite Ammo
Reply With Quote #76

Needed an reserve option and include all weapons ingame.
__________________
CASE CLOSED
Ingame Name: KleinMarquez
KleinMarquez is offline
moekai
Member
Join Date: Jul 2019
Old 11-21-2020 , 19:05   Re: [L4D2] Infinite Ammo
Reply With Quote #77

Quote:
Originally Posted by Crasher_3637 View Post
Updated to v1.5.6

- Fixed all timers.
- Used methodmap for menus.
- Too busy to update the rest of the code.
PHP Code:
L 11/21/2020 17:56:16: [SM]   [1Line 136, /home/forums/content/files/1/8/1/1/6/6/172743.attach::DisplayEnablePlayerMenu
L 11
/21/2020 17:56:16: [SM]   [2Line 113, /home/forums/content/files/1/8/1/1/6/6/172743.attach::AdminMenu_IAEnablePlayer 
moekai is offline
Crasher_3637
AlliedModders Donor
Join Date: May 2012
Old 11-21-2020 , 19:29   Re: [L4D2] Infinite Ammo
Reply With Quote #78

Quote:
Originally Posted by moekai View Post
PHP Code:
L 11/21/2020 17:56:16: [SM]   [1Line 136, /home/forums/content/files/1/8/1/1/6/6/172743.attach::DisplayEnablePlayerMenu
L 11
/21/2020 17:56:16: [SM]   [2Line 113, /home/forums/content/files/1/8/1/1/6/6/172743.attach::AdminMenu_IAEnablePlayer 
You should post the full log stack if you're expecting any help. Those 2 lines literally tell me nothing.
__________________
AFK like JFK
Crasher_3637 is offline
moekai
Member
Join Date: Jul 2019
Old 11-22-2020 , 13:40   Re: [L4D2] Infinite Ammo
Reply With Quote #79

Quote:
Originally Posted by Crasher_3637 View Post
You should post the full log stack if you're expecting any help. Those 2 lines literally tell me nothing.
My bad. Heres the full log:

PHP Code:
L 11/22/2020 12:37:35: [SMException reportedClient index 19 is invalid
L 11
/22/2020 12:37:35: [SMBlamingl4d2_iiammo.smx
L 11
/22/2020 12:37:35: [SMCall stack trace:
L 11/22/2020 12:37:35: [SM]   [0IsClientInGame
L 11
/22/2020 12:37:35: [SM]   [1Line 136, /home/forums/content/files/1/8/1/1/6/6/166681.attach::DisplayEnablePlayerMenu
L 11
/22/2020 12:37:35: [SM]   [2Line 113, /home/forums/content/files/1/8/1/1/6/6/166681.attach::AdminMenu_IAEnablePlayer 
moekai is offline
Crasher_3637
AlliedModders Donor
Join Date: May 2012
Old 11-22-2020 , 21:31   Re: [L4D2] Infinite Ammo
Reply With Quote #80

Quote:
Originally Posted by moekai View Post
My bad. Heres the full log:

PHP Code:
L 11/22/2020 12:37:35: [SMException reportedClient index 19 is invalid
L 11
/22/2020 12:37:35: [SMBlamingl4d2_iiammo.smx
L 11
/22/2020 12:37:35: [SMCall stack trace:
L 11/22/2020 12:37:35: [SM]   [0IsClientInGame
L 11
/22/2020 12:37:35: [SM]   [1Line 136, /home/forums/content/files/1/8/1/1/6/6/166681.attach::DisplayEnablePlayerMenu
L 11
/22/2020 12:37:35: [SM]   [2Line 113, /home/forums/content/files/1/8/1/1/6/6/166681.attach::AdminMenu_IAEnablePlayer 
I updated the post with new versions. Thanks for reporting.
__________________
AFK like JFK
Crasher_3637 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 17:38.


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