AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   ... (https://forums.alliedmods.net/showthread.php?t=334872)

Cristian505 10-24-2021 15:25

...
 
...

fysiks 10-24-2021 16:42

Re: Conditions Problem
 
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).

DJEarthQuake 10-25-2021 09:10

Re: Conditions Problem
 
The issue was temporarily duplicatable for me.

fysiks 10-25-2021 22:48

Re: Conditions Problem
 
Quote:

Originally Posted by DJEarthQuake (Post 2761630)
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.

DJEarthQuake 10-26-2021 15:21

Re: Conditions Problem
 
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.


All times are GMT -4. The time now is 11:31.

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