Stacked textdraw problem
#1

Hey! So my problem is pretty self explanatory cause the video but I'll explain it as much as I can. When I enter the CP the textdraws are made and the timer goes off at the same time which hides the textdraws after 5 seconds. Well its working fine, but when I enter twice in a row the second textdraw just dont disappear after 5 seconds. Here is some code:

PHP код:
hook OnPlayerEnterDynamicCP(playeridcheckpointid)
{
    if(
pData[playerid][pGroup] == GROUP_TYPE_LAW)
    {
        if(
checkpointid == checkpoint)
        {
            
Law_VS_Pressy(playerid);
            
SetTimerEx("DLaw_VS_Pressy"40000"i"playerid);
            
PlayerPlaySound(playerid,1150,1568.5251,-1610.2024,11);
        }
    }
    return 
1;
}
forward DLaw_VS_Pressy(playerid);
public 
DLaw_VS_Pressy(playerid)
{
    
TextDrawHideForPlayer(playeridLaw_VS_Pressy1);
    
TextDrawDestroy(Law_VS_Pressy1);

Whats the best work-around for this problem? Thanks for the help in advance.
Reply


Messages In This Thread
Stacked textdraw problem - by polygxn - 17.02.2019, 04:12
Re: Stacked textdraw problem - by Pottus - 17.02.2019, 04:27
Re: Stacked textdraw problem - by polygxn - 17.02.2019, 04:42
Re: Stacked textdraw problem - by Pottus - 17.02.2019, 05:19
Re: Stacked textdraw problem - by polygxn - 17.02.2019, 06:03

Forum Jump:


Users browsing this thread: 1 Guest(s)