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

[L4D2] Burners Announce


Post New Thread Reply   
 
Thread Tools Display Modes
foxhound27
AlliedModders Donor
Join Date: Sep 2019
Location: Argentina
Old 10-06-2019 , 15:48   Re: [L4D2] Burners Announce
Reply With Quote #11

only works for molotov many errors on console when gascan show both versions

any fix? ty
foxhound27 is offline
foxhound27
AlliedModders Donor
Join Date: Sep 2019
Location: Argentina
Old 10-18-2019 , 21:36   Re: [L4D2] Burners Announce
Reply With Quote #12

Fresh Release

Attached Files
File Type: inc colors.inc (25.4 KB, 223 views)
File Type: smx burners_announcements.smx (7.3 KB, 214 views)
File Type: sp Get Plugin or Get Source (burners_announcements.sp - 247 views - 5.1 KB)

Last edited by foxhound27; 05-31-2020 at 16:51. Reason: ive made my own version - Update
foxhound27 is offline
strikeraot
Senior Member
Join Date: Dec 2018
Location: Viet Nam
Old 10-22-2019 , 13:06   Re: [L4D2] Burners Announce
Reply With Quote #13

Quote:
Originally Posted by Marttt View Post
Try this version.
Quote:
L 10/22/2019 - 233:16: [SM] Blaming: Gascan.smx
L 10/22/2019 - 233:16: [SM] Call stack trace:
L 10/22/2019 - 233:16: [SM] [0] FindValueInArray
L 10/22/2019 - 233:16: [SM] [1] Line 160, /groups/sourcemod/upload_tmp/textF2DvT9.sp::OnEntityDestroyed
L 10/22/2019 - 233:16: [SM] Exception reported: Invalid Handle 0 (error: 4)
L 10/22/2019 - 233:16: [SM] Blaming: Gascan.smx
L 10/22/2019 - 233:16: [SM] Call stack trace:
L 10/22/2019 - 233:16: [SM] [0] GetArraySize
L 10/22/2019 - 233:16: [SM] [1] Line 266, /groups/sourcemod/upload_tmp/textF2DvT9.sp::GasCansHook
L 10/22/2019 - 233:16: [SM] [2] Line 234, /groups/sourcemod/upload_tmp/textF2DvT9.sp::RefreshThem
L 10/22/2019 - 233:16: [SM] [3] Line 134, /groups/sourcemod/upload_tmp/textF2DvT9.sp::OnEntityCreated
L 10/22/2019 - 233:16: [SM] Exception reported: Invalid Handle 0 (error: 4)
L 10/22/2019 - 233:16: [SM] Blaming: Gascan.smx
L 10/22/2019 - 233:16: [SM] Call stack trace:
L 10/22/2019 - 233:16: [SM] [0] FindValueInArray
L 10/22/2019 - 233:16: [SM] [1] Line 160, /groups/sourcemod/upload_tmp/textF2DvT9.sp::OnEntityDestroyed
L 10/22/2019 - 2369: [SM] Exception reported: Client index 0 is invalid
strikeraot is offline
strikeraot
Senior Member
Join Date: Dec 2018
Location: Viet Nam
Old 10-23-2019 , 01:17   Re: [L4D2] Burners Announce
Reply With Quote #14

oh i used old version xd. Sorry

Last edited by strikeraot; 10-23-2019 at 01:17.
strikeraot is offline
Tonblader
Senior Member
Join Date: Jul 2011
Location: Peru
Old 01-04-2020 , 14:43   Re: [L4D2] Burners Announce
Reply With Quote #15

Can you add a cvar so you can tell the plugin what ad you will consider?
gascan 1/0
gascan (scavenge) 1/0
Fireworks 1/0
molotov 1/0
explosive barrel 1/0
acid spitter 1/0

Edit:
I forgot 1 more condition, the problem is that if I destroy several things at the same time, the message spam a lot.
I would like it to be just 1 "announce of burners" and now go into time-out for a while before launching another "announce of burners", except that they are different people who destroy.

Last edited by Tonblader; 09-29-2020 at 13:39.
Tonblader is offline
lightphoenix2
Member
Join Date: Feb 2016
Old 01-05-2020 , 01:10   Re: [L4D2] Burners Announce
Reply With Quote #16

Quote:
Originally Posted by Marttt View Post
Try this version.
[SM] Exception reported: Invalid Handle 0 (error: 4)
[SM] Blaming: burners_announcements.smx
[SM] Call stack trace:
[SM] [0] GetArraySize
[SM] [1] Line 257, \left4dead2\addons\sourcemod\scripting\burner s_announcements.sp::GasCansHook
[SM] [2] Line 225, \left4dead2\addons\sourcemod\scripting\burner s_announcements.sp::RefreshThem
[SM] [3] Line 133, \left4dead2\addons\sourcemod\scripting\burner s_announcements.sp::OnEntityCreated
[SM] Exception reported: Invalid Handle 0 (error: 4)
[SM] Blaming: burners_announcements.smx
[SM] Call stack trace:
[SM] [0] FindValueInArray
[SM] [1] Line 177, \left4dead2\addons\sourcemod\scripting\burner s_announcements.sp::OnEntityDestroyed

Base on the code, it refresh on map start and round start. You will get this when the map is loaded and when the round start. It throws a Exception at GetArraySize(gascanArray), the gascanArray is either not created or pointing to a INVALID_HANDLE

Last edited by lightphoenix2; 01-05-2020 at 01:19.
lightphoenix2 is offline
foxhound27
AlliedModders Donor
Join Date: Sep 2019
Location: Argentina
Old 03-14-2020 , 08:33   Re: [L4D2] Burners Announce
Reply With Quote #17

Quote:
Originally Posted by lightphoenix2 View Post
[SM] Exception reported: Invalid Handle 0 (error: 4)
[SM] Blaming: burners_announcements.smx
[SM] Call stack trace:
[SM] [0] GetArraySize
[SM] [1] Line 257, \left4dead2\addons\sourcemod\scripting\burner s_announcements.sp::GasCansHook
[SM] [2] Line 225, \left4dead2\addons\sourcemod\scripting\burner s_announcements.sp::RefreshThem
[SM] [3] Line 133, \left4dead2\addons\sourcemod\scripting\burner s_announcements.sp::OnEntityCreated
[SM] Exception reported: Invalid Handle 0 (error: 4)
[SM] Blaming: burners_announcements.smx
[SM] Call stack trace:
[SM] [0] FindValueInArray
[SM] [1] Line 177, \left4dead2\addons\sourcemod\scripting\burner s_announcements.sp::OnEntityDestroyed

Base on the code, it refresh on map start and round start. You will get this when the map is loaded and when the round start. It throws a Exception at GetArraySize(gascanArray), the gascanArray is either not created or pointing to a INVALID_HANDLE

the problem is at map end both arrays get closed + invalid handle

PHP Code:
public void OnMapEnd()
{
    
mapStarted false;
    
    
CloseHandle(gascanArray);
    
gascanArray INVALID_HANDLE;
    
    
CloseHandle(hitterArray);
    
hitterArray INVALID_HANDLE;

and never created again, so on mapstart replace the current function with


PHP Code:
public void OnMapStart()
{
    if(
gascanArray == INVALID_HANDLEgascanArray CreateArray();
    if(
hitterArray == INVALID_HANDLEhitterArray CreateArray();
    
mapStarted true;

but still im not sure if its even needed to close these handle since they refresh get cleaned not sure why need this

so maybe this enough

PHP Code:
public void OnMapEnd()
{
    
mapStarted false;
    
    
ClearArray(gascanArray);
    
ClearArray(hitterArray);


Last edited by foxhound27; 03-14-2020 at 08:47.
foxhound27 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 18:54.


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