Don' hide textdraw
#1

Helo! I make a speedometer and is work fine, but when i exit from car is don't hide .
Код HTML:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
	// intra in masina
	if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER) 
    {
     killtimer[playerid] = SetTimerEx("speed", 100, true, "i", playerid); 
    }
	// IESE DIN MASINA GATA SPEEDU
	if(oldstate == PLAYER_STATE_DRIVER && newstate == PLAYER_STATE_ONFOOT) 
    {  
	   KillTimer(killtimer[playerid]);
    }
    return 1;
}
What is wrong?
Reply


Messages In This Thread
Don' hide textdraw - by Calinut200 - 10.05.2018, 19:40
Re: Don' hide textdraw - by FaLLenGirL - 10.05.2018, 20:00
Re: Don' hide textdraw - by Calinut200 - 10.05.2018, 20:23
Re: Don' hide textdraw - by FaLLenGirL - 10.05.2018, 20:27
Re: Don' hide textdraw - by Calinut200 - 10.05.2018, 20:40
Re: Don' hide textdraw - by FaLLenGirL - 10.05.2018, 20:44
Re: Don' hide textdraw - by Calinut200 - 10.05.2018, 20:50
Re: Don' hide textdraw - by Calinut200 - 10.05.2018, 20:53
Re: Don' hide textdraw - by DeathCore - 10.05.2018, 23:51

Forum Jump:


Users browsing this thread: 1 Guest(s)