Raised This Month: $ Target: $400
 0% 

[L4D2] Nuke - Timer Issue


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Grey83
Veteran Member
Join Date: Dec 2014
Location: Ukraine
Old 07-23-2022 , 03:56   Re: [L4D2] How to stop timers + countdown issue
Reply With Quote #1

Quote:
Originally Posted by alasfourom View Post
The First Issue, is this error, I have no clue how to fix this > Line 58 I pointed it in the script > delete g_Timer_NukePlayers;
PHP Code:
public Action Event_RoundEnd(Event event, const char[] namebool dontBroadcast)
{
    ...
    
delete g_Timer_NukePlayers;         // Line 58
}

public 
Action Timer_NukePlayers(Handle timerint client)
{
    ...
    return 
Plugin_Handled;

==>
PHP Code:
public Action Event_RoundEnd(Event event, const char[] namebool dontBroadcast)
{
    ...
    if(
g_Timer_NukePlayersdelete g_Timer_NukePlayers;         // Line 58
}

public 
Action Timer_NukePlayers(Handle timerint client)
{
    ...
    
g_Timer_NukePlayers null;
    return 
Plugin_Stop;

__________________

Last edited by Grey83; 07-23-2022 at 03:57.
Grey83 is offline
alasfourom
Senior Member
Join Date: Feb 2022
Location: Saudi Arabia
Old 07-23-2022 , 10:01   Re: [L4D2] How to stop timers + countdown issue
Reply With Quote #2

Quote:
Originally Posted by Grey83 View Post
PHP Code:
public Action Event_RoundEnd(Event event, const char[] namebool dontBroadcast)
{
    ...
    
delete g_Timer_NukePlayers;         // Line 58
}

public 
Action Timer_NukePlayers(Handle timerint client)
{
    ...
    return 
Plugin_Handled;

==>
PHP Code:
public Action Event_RoundEnd(Event event, const char[] namebool dontBroadcast)
{
    ...
    if(
g_Timer_NukePlayersdelete g_Timer_NukePlayers;         // Line 58
}

public 
Action Timer_NukePlayers(Handle timerint client)
{
    ...
    
g_Timer_NukePlayers null;
    return 
Plugin_Stop;



Awwwww Your Awesome

That fixed my issue now thank you very much > 0 Errors and it reset when round ends

Quote:
Originally Posted by Grey83 View Post
This will work
I tested it, countdown was not working and doesn't slay you after time passes
Shouldn't be TIMER_REPEAT > To make countdown work???
alasfourom is offline
Grey83
Veteran Member
Join Date: Dec 2014
Location: Ukraine
Old 07-23-2022 , 11:45   Re: [L4D2] How to stop timers + countdown issue
Reply With Quote #3

Quote:
Originally Posted by alasfourom View Post
Shouldn't be TIMER_REPEAT > To make countdown work???
yes
PHP Code:
public Action Timer_StartCountDown(Handle timer)
{
    
g_Timer CreateTimer(1.0Timer_CountDown);
    return 
Plugin_Stop;

==>
PHP Code:
public Action Timer_StartCountDown(Handle timer)
{
    
g_Timer CreateTimer(1.0Timer_CountDown_TIMER_REPEAT);
    return 
Plugin_Stop;

__________________
Grey83 is offline
alasfourom
Senior Member
Join Date: Feb 2022
Location: Saudi Arabia
Old 07-23-2022 , 12:22   Re: [L4D2] How to stop timers + countdown issue
Reply With Quote #4

Quote:
Originally Posted by Grey83 View Post
yes
PHP Code:
public Action Timer_StartCountDown(Handle timer)
{
    
g_Timer CreateTimer(1.0Timer_CountDown);
    return 
Plugin_Stop;

==>
PHP Code:
public Action Timer_StartCountDown(Handle timer)
{
    
g_Timer CreateTimer(1.0Timer_CountDown_TIMER_REPEAT);
    return 
Plugin_Stop;

Excellent, thanks
alasfourom 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 00:58.


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