TextDrawHide function not being called.
#1

I want the textdraws to hide when the timer reaches 30. In the code, all the statements are working correctly except
PHP код:
HideRSCaptureTD(playerid); 
I have used SendClientMessage to debug the problem but every other line gets excecuted except the line above.
ShowCapturedTD(playerid); works fine (Rechecked by SendClientMessage too)

Heres my code:
PHP код:
public GZCounter(playerid,GZName[])
{
    new 
Counter[6];
    if(!
strcmp(GZName,"RS",true))
    {
        if(
RSPaused == 0RSTimer++;
        
format(Counter,6,"%d/30",RSTimer);
        
TextDrawSetString(GZCapturingRS2,Counter);
        if(
RSTimer == 30)
        {
            
            
HideRSCaptureTD(playerid);
            
ShowCapturedTD(playerid);
            
RSTimer 0;
                    
KillTimer(GZTimerRS);
        }
    }
}
HideRSCaptureTD(playerid)
{
    
TextDrawHideForPlayer(playerid,GZCapturing0);
    
TextDrawHideForPlayer(playerid,GZCapturingRS1);
    
TextDrawHideForPlayer(playerid,GZCapturingRS2);
    
TextDrawHideForPlayer(playerid,GZPaused3);
    
SendClientMessage(playerid,white,"Hiding RS Capture TD");
    return 
1;

Reply


Messages In This Thread
TextDrawHide function not being called. - by Primes007 - 09.09.2017, 10:40
Re: TextDrawHide function not being called. - by Meller - 09.09.2017, 11:11
Re: TextDrawHide function not being called. - by OneDay - 09.09.2017, 11:54
Re: TextDrawHide function not being called. - by JasonRiggs - 09.09.2017, 11:58
Re: TextDrawHide function not being called. - by Primes007 - 09.09.2017, 12:13
Re: TextDrawHide function not being called. - by Primes007 - 09.09.2017, 12:16
Re: TextDrawHide function not being called. - by Primes007 - 09.09.2017, 15:08

Forum Jump:


Users browsing this thread: 3 Guest(s)