It's Not Hiding!
#9

Quote:
Originally Posted by Osamakurdi
Посмотреть сообщение
My Code:
PHP код:
public OnPlayerEnterVehicle(playeridvehicleidispassenger)
{
    
speed[playerid] = TextDrawCreate(500373"SPEED:");
    
TextDrawUseBox(speed[playerid], 0);
    
TextDrawFont(speed[playerid], 3);
    
TextDrawBoxColor(speed[playerid], 0x252826FF);
    
format(strsizeof(str), "SPEED:~y~%i"GetPlayerVehicleSpeed(playerid));
    
TextDrawSetString(speed[playerid], str);
    
TextDrawShowForPlayer(playeridspeed[playerid]);
    
SetTimer("speedtime",10000);
    
/////////////////////////////////////
    
return 1;
}
public 
OnPlayerExitVehicle(playeridvehicleid)
{
        
TextDrawDestroy(speed[playerid]);
    
TextDrawHideForPlayer(playeridspeed[playerid]);
    return 
1;

Your code is really bad, for instance, Per-Player textdraws should be used to do stuff like these.

Please look up a speedometer tutorial on the forums.
Reply


Messages In This Thread
It's Not Hiding! - by Osamakurdi - 01.02.2018, 12:56
Re: It's Not Hiding! - by Mugala - 01.02.2018, 13:02
Re: It's Not Hiding! - by Osamakurdi - 01.02.2018, 13:11
Re: It's Not Hiding! - by solstice_ - 01.02.2018, 13:19
Re: It's Not Hiding! - by ISmokezU - 01.02.2018, 13:20
Re: It's Not Hiding! - by Osamakurdi - 01.02.2018, 13:23
Re: It's Not Hiding! - by solstice_ - 01.02.2018, 13:24
Re: It's Not Hiding! - by Osamakurdi - 01.02.2018, 13:27
Re: It's Not Hiding! - by ISmokezU - 01.02.2018, 13:36
Re: It's Not Hiding! - by Mugala - 01.02.2018, 14:27

Forum Jump:


Users browsing this thread: 2 Guest(s)