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

[l4d2] Luffy Items


Post New Thread Reply   
 
Thread Tools Display Modes
BlackSabbarh
Senior Member
Join Date: Sep 2018
Old 03-27-2019 , 02:37   Re: [l4d2] Luffy Items
Reply With Quote #61

thanks working without errors in the log

I could load the other luffy add-on l4d2_luffy.smx, l4d2_luffy.sp to test it. I would appreciate it
BlackSabbarh is offline
sonic155
Senior Member
Join Date: Mar 2019
Old 03-31-2019 , 06:16   Re: [l4d2] Luffy Items
Reply With Quote #62

Any way of using this plugin without the "luck" perk or atlest customing the stuff for "luck" a lot of my players are getting upset with the explosive rounds and fire rounds the whole not being able to place them is getting them a bit upset and they want the plugin off / anyway I can just remove "luck" perk or atlest make it to where they can use the upgraded ammo ?

on another note people dont like the whole lasersights being a single use then gone kind of thing anyway of changing it made a lot of players mad on "dead center" the gun store when only one could use the lasersight o.o
sonic155 is offline
ricksfishin
Senior Member
Join Date: Oct 2017
Old 03-31-2019 , 10:39   Re: [l4d2] Luffy Items
Reply With Quote #63

No i just fixed it to work
ricksfishin is offline
joyist
Member
Join Date: Apr 2018
Old 05-10-2019 , 00:28   Re: [l4d2] Luffy Items
Reply With Quote #64

I really like this plugin.
__________________
http://chdong.top/motd

L4D2 CN CloudsSky Server group。
My WebLabWebOS
joyist is offline
BlackSabbarh
Senior Member
Join Date: Sep 2018
Old 10-27-2019 , 18:45   Re: [l4d2] Luffy Items
Reply With Quote #65

Quote:
Originally Posted by ricksfishin View Post
No i just fixed it to work

I get these errors in the log

[SM] Exception reported: Array index out-of-bounds (index -1, limit 20)
L 10/27/2019 - 18:40:46: [SM] Blaming: l4d2_luffy_ex.smx
L 10/27/2019 - 18:40:46: [SM] Call stack trace:
L 10/27/2019 - 18:40:46: [SM] [1] Line 902, /home/forums/content/files/2/8/2/3/4/5/174614.attach::Timer_RandomLifeSpawn
L 10/27/2019 - 18:40:46: [SM] Exception reported: Array index out-of-bounds (index -1, limit 20)
L 10/27/2019 - 18:40:46: [SM] Blaming: l4d2_luffy_ex.smx
L 10/27/2019 - 18:40:46: [SM] Call stack trace:
L 10/27/2019 - 18:40:46: [SM] [1] Line 902, /home/forums/content/files/2/8/2/3/4/5/174614.attach::Timer_RandomLifeSpawn
L 10/27/2019 - 18:40:46: [SM] Exception reported: Array index out-of-bounds (index -1, limit 20)
L 10/27/2019 - 18:40:46: [SM] Blaming: l4d2_luffy_ex.smx
L 10/27/2019 - 18:40:46: [SM] Call stack trace:
L 10/27/2019 - 18:40:46: [SM] [1] Line 902, /home/forums/content/files/2/8/2/3/4/5/174614.attach::Timer_RandomLifeSpawn
L 10/27/2019 - 18:40:47: [SM] Exception reported: Array index out-of-bounds (index -1, limit 20)
L 10/27/2019 - 18:40:47: [SM] Blaming: l4d2_luffy_ex.smx
L 10/27/2019 - 18:40:47: [SM] Call stack trace:
L 10/27/2019 - 18:40:47: [SM] [1] Line 902, /home/forums/content/files/2/8/2/3/4/5/174614.attach::Timer_RandomLifeSpawn
L 10/27/2019 - 18:40:47: [SM] Exception reported: Array index out-of-bounds (index -1, limit 20)
L 10/27/2019 - 18:40:47: [SM] Blaming: l4d2_luffy_ex.smx
L 10/27/2019 - 18:40:47: [SM] Call stack trace:
L 10/27/2019 - 18:40:47: [SM] [1] Line 902, /home/forums/content/files/2/8/2/3/4/5/174614.attach::Timer_RandomLifeSpawn
L 10/27/2019 - 18:40:47: [SM] Exception reported: Array index out-of-bounds (index -1, limit 20)
L 10/27/2019 - 18:40:47: [SM] Blaming: l4d2_luffy_ex.smx
BlackSabbarh is offline
ricksfishin
Senior Member
Join Date: Oct 2017
Old 10-28-2019 , 12:21   Re: [l4d2] Luffy Items
Reply With Quote #66

Just tested got no error's in log, linux server, sourcemod-1.10.
ricksfishin is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 10-28-2019 , 12:28   Re: [l4d2] Luffy Items
Reply With Quote #67

You should be checking the index. It returns -1 when invalid, hence the errors reported. This appears twice in the code.

From:
PHP Code:
    new id GetIndexindex );
    
g_ItemLimitLife[id] -= 0.1
To:

PHP Code:
    new id GetIndexindex );
    if( 
id == -) return Plugin_Stop;
    
g_ItemLimitLife[id] -= 0.1
__________________

Last edited by Silvers; 10-28-2019 at 12:29.
Silvers is offline
BlackSabbarh
Senior Member
Join Date: Sep 2018
Old 10-28-2019 , 13:21   Re: [l4d2] Luffy Items
Reply With Quote #68

I receive this

/home/groups/sourcemod/upload_tmp/phpwJV2Y8.sp(902) : warning 217: loose indentation
/home/groups/sourcemod/upload_tmp/phpwJV2Y8.sp(905) : warning 217: loose indentation
/home/groups/sourcemod/upload_tmp/phpwJV2Y8.sp(972) : warning 217: loose indentation
/home/groups/sourcemod/upload_tmp/phpwJV2Y8.sp(975) : warning 217: loose indentation
Code size: 86020 bytes
Data size: 66540 bytes
Stack/heap size: 16384 bytes
Total requirements: 168944 bytes

4 Warnings.
BlackSabbarh is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 10-28-2019 , 13:35   Re: [l4d2] Luffy Items
Reply With Quote #69

Quote:
Originally Posted by BlackSabbarh View Post
I receive this

/home/groups/sourcemod/upload_tmp/phpwJV2Y8.sp(902) : warning 217: loose indentation
https://forums.alliedmods.net/showthread.php?t=93409
https://forums.alliedmods.net/showthread.php?t=144312
https://forums.alliedmods.net/showthread.php?t=285694

Can ignore
__________________
Silvers is offline
BlackSabbarh
Senior Member
Join Date: Sep 2018
Old 10-28-2019 , 13:55   Re: [l4d2] Luffy Items
Reply With Quote #70

L 10/28/2019 - 149:52: [SM] Exception reported: Array index out-of-bounds (index -1, limit 20)
L 10/28/2019 - 149:52: [SM] Blaming: l4d2_luffy_ex.smx
L 10/28/2019 - 149:52: [SM] Call stack trace:
L 10/28/2019 - 149:52: [SM] [1] Line 971, /home/forums/content/files/2/8/2/3/4/5/174614.attach::Timer_ItemLifeSpawn
L 10/28/2019 - 149:52: [SM] Exception reported: Array index out-of-bounds (index -1, limit 20)
L 10/28/2019 - 149:52: [SM] Blaming: l4d2_luffy_ex.smx
L 10/28/2019 - 149:52: [SM] Call stack trace:
L 10/28/2019 - 149:52: [SM] [1] Line 902, /home/forums/content/files/2/8/2/3/4/5/174614.attach::Timer_RandomLifeSpawn
L 10/28/2019 - 149:52: [SM] Exception reported: Array index out-of-bounds (index -1, limit 20)
L 10/28/2019 - 149:52: [SM] Blaming: l4d2_luffy_ex.smx
L 10/28/2019 - 149:52: [SM] Call stack trace:
L 10/28/2019 - 149:52: [SM] [1] Line 971, /home/forums/content/files/2/8/2/3/4/5/174614.attach::Timer_ItemLifeSpawn
L 10/28/2019 - 149:52: [SM] Exception reported: Array index out-of-bounds (index -1, limit 20)
L 10/28/2019 - 149:52: [SM] Blaming: l4d2_luffy_ex.smx
L 10/28/2019 - 149:52: [SM] Call stack trace:
L 10/28/2019 - 149:52: [SM] [1] Line 902, /home/forums/content/files/2/8/2/3/4/5/174614.attach::Timer_RandomLifeSpawn
L 10/28/2019 - 149:52: [SM] Exception reported: Array inde
BlackSabbarh 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 01:15.


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