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

[L4D2] Infinite Ammo


Post New Thread Reply   
 
Thread Tools Display Modes
zaviier
Senior Member
Join Date: Aug 2017
Location: Indonesia
Old 07-27-2019 , 03: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
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 05-07-2020 , 00: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...
__________________
Psyk0tik is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 05-07-2020 , 03: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
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 05-07-2020 , 05: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.
__________________
Psyk0tik is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 05-07-2020 , 05: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 , 07: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 , 18: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
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 11-21-2020 , 18: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.
__________________
Psyk0tik is offline
moekai
Member
Join Date: Jul 2019
Old 11-22-2020 , 12: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
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 11-22-2020 , 20: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.
__________________
Psyk0tik is offline
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 06:03.


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