Raised This Month: $ Target: $400
 0% 

Remaining CT = slay


Post New Thread Reply   
 
Thread Tools Display Modes
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 08-15-2020 , 14:07   Re: Remaining CT = slay
Reply With Quote #71

My bad, I was thinking get_players_num() returned ALIVE, so you can disregard my comment. I am not sure, please run the latest version with the logging enabled.
__________________
Bugsy is offline
Stefanos
Senior Member
Join Date: May 2020
Old 08-15-2020 , 14:10   Re: Remaining CT = slay
Reply With Quote #72

ok.. new bug now countdown goes for TERRORIST Instead CT !!!
Stefanos is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 08-15-2020 , 14:11   Re: Remaining CT = slay
Reply With Quote #73

This is fixed
__________________

Last edited by Bugsy; 08-15-2020 at 14:11.
Bugsy is offline
Stefanos
Senior Member
Join Date: May 2020
Old 08-15-2020 , 14:54   Re: Remaining CT = slay
Reply With Quote #74

i think its fixed.. but still that major bug is that SOMETIMES countdown wont even start.. i watched now 23 ct dead, 2 alive and 1 tr alive, 1 ct dies and other left alive.. and countdown did not started...
Stefanos is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 08-15-2020 , 15:06   Re: Remaining CT = slay
Reply With Quote #75

Provide me the log when this occurs

log_to_file( "CTSlay.log" , "Task Check - g_iSlayID=%d : Slay delay: %d >= %d : Players %d > %d" , g_iSlayID , get_systime() - g_iRoundStartTime , get_pcvar_num( g_pPluginStartDelay ) , get_playersnum() , get_pcvar_num( g_Bots ? g_pSlayWithBots : g_pSlayNoBots ) );
__________________
Bugsy is offline
Stefanos
Senior Member
Join Date: May 2020
Old 08-15-2020 , 15:27   Re: Remaining CT = slay
Reply With Quote #76

https://www.sendspace.com/file/juizju this is log..
Stefanos is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 08-15-2020 , 17:41   Re: Remaining CT = slay
Reply With Quote #77

I'd need to know specifically when you had the issue -- date + time
__________________
Bugsy is offline
Stefanos
Senior Member
Join Date: May 2020
Old 08-15-2020 , 19:46   Re: Remaining CT = slay
Reply With Quote #78

this is where issue came.. player ahmed pro didnt get slayed and he was last vs terror

L 08/16/2020 - 01:44:53: Round end
L 08/16/2020 - 01:44:54: Task Check - g_iSlayID=29 : Slay delay: 124 >= 90 : Players 29 > 3
L 08/16/2020 - 01:44:55: Task Check - g_iSlayID=29 : Slay delay: 125 >= 90 : Players 29 > 3
L 08/16/2020 - 01:44:56: Task Check - g_iSlayID=29 : Slay delay: 126 >= 90 : Players 29 > 3
L 08/16/2020 - 01:44:57: Task Check - g_iSlayID=29 : Slay delay: 127 >= 90 : Players 29 > 3
L 08/16/2020 - 01:44:58: Task Check - g_iSlayID=29 : Slay delay: 128 >= 90 : Players 29 > 3
L 08/16/2020 - 01:44:58: New round
L 08/16/2020 - 01:44:59: Task Check - g_iSlayID=29 : Slay delay: 1 >= 90 : Players 29 > 3
L 08/16/2020 - 01:45:00: Task Check - g_iSlayID=29 : Slay delay: 2 >= 90 : Players 29 > 3
L 08/16/2020 - 01:45:01: Task Check - g_iSlayID=29 : Slay delay: 3 >= 90 : Players 29 > 3
L 08/16/2020 - 01:45:02: Task Check - g_iSlayID=29 : Slay delay: 4 >= 90 : Players 29 > 3
L 08/16/2020 - 01:45:03: Task Check - g_iSlayID=29 : Slay delay: 5 >= 90 : Players 29 > 3
L 08/16/2020 - 01:45:04: Task Check - g_iSlayID=29 : Slay delay: 6 >= 90 : Players 29 > 3
L 08/16/2020 - 01:45:05: Task Check - g_iSlayID=29 : Slay delay: 7 >= 90 : Players 29 > 3
Stefanos is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 08-16-2020 , 01:35   Re: Remaining CT = slay
Reply With Quote #79

Thank you. Based on that log I think I found the issue. When I am removing the task on round end or on player disconnect, I was not setting g_iSlayID to 0, resulting in the code not creating subsequent tasks (countdowns) due to the below condition in red. The code here is updated: https://forums.alliedmods.net/showpo...1&postcount=49

if ( !g_iSlayID && ( get_systime() - g_iRoundStartTime ) >= get_pcvar_num( g_pPluginStartDelay ) && ( get_playersnum() > get_pcvar_num( g_Bots ? g_pSlayWithBots : g_pSlayNoBots ) ) )
{
__________________

Last edited by Bugsy; 08-16-2020 at 01:36.
Bugsy is offline
Stefanos
Senior Member
Join Date: May 2020
Old 08-16-2020 , 11:00   Re: Remaining CT = slay
Reply With Quote #80

new problem... i was list alive and other player name appeared instead of mine, and it dissapeared.. but i got slayed.. so hud showed in 1 sec + other name instead of mine and hud deleted but i got slayed..
Stefanos 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 11:34.


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