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

...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Cristian505
Senior Member
Join Date: Oct 2020
Old 10-24-2021 , 15:25   ...
Reply With Quote #1

...

Last edited by Cristian505; 08-10-2022 at 14:20.
Cristian505 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-24-2021 , 16:42   Re: Conditions Problem
Reply With Quote #2

It is not possible for that code to show both HUD messages at the same time (because they are mutually exclusive) unless OnRoundEnd() is getting called twice in a row and the round_count variable is changing in between which seems highly unlikely.

Are you sure that that is actually the code that is running or that there is no other code doing it? Maybe another plugin or you forgot to upload the latest version of the .amxx file (I've done this before, very frustrating).
__________________
fysiks is offline
Old 10-24-2021, 17:11
Cristian505
This message has been deleted by Cristian505.
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 10-25-2021 , 09:10   Re: Conditions Problem
Reply With Quote #3

The issue was temporarily duplicatable for me.
__________________

Last edited by DJEarthQuake; 10-26-2021 at 12:16.
DJEarthQuake is offline
Old 10-25-2021, 09:11
DJEarthQuake
This message has been deleted by DJEarthQuake. Reason: It double posted inadvertently.
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-25-2021 , 22:48   Re: Conditions Problem
Reply With Quote #4

Quote:
Originally Posted by DJEarthQuake View Post
Other notes:
Also calling twice per round like that will do it too on a new map with bots especially when the round restarts again on player join if that option is set on PODbot for instance. Call only on round end. Hud message only needs set on 1 line in that function.

You were counting on round begin and end that's 2x per.
Where in his code do you see it "calling twice per round" and "counting on round begin and end"?

I never expected a round to be less than 12 seconds so if there is something that would cause a round being and round in all within 12 seconds, then that could explain the multiple messages. If this is truly the case, then some extra code will likely be needed to properly tell this code when it's valid to count rounds and show messages.
__________________
fysiks is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 10-26-2021 , 15:21   Re: Conditions Problem
Reply With Quote #5

Looked again. It's not there. Unable to do what it did to him. At what point is he changing teams? When I changed teams the messages did not show both due to that reason. I will go along with your initial instinct, other code running.
__________________
DJEarthQuake 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 15:57.


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