[Ajuda] Valor nгo sendo getado na textdraw
#4

PHP код:
//Velocimetro:
new Text:TxdVelo[MAX_PLAYERS];
forward AtualizarVelo(playerid);
//Textdraw Velocimetro
for(new i=0i<MAX_PLAYERSi++)
{
    
TxdVelo[i] = TextDrawCreate(538.000000342.000000"~W~H ~G~~H~KM/H");
    
TextDrawBackgroundColor(TxdVelo[i], 255);
    
TextDrawFont(TxdVelo[i], 1);
    
TextDrawLetterSize(TxdVelo[i], 0.4800001.799999);
    
TextDrawColor(TxdVelo[i], -1);
    
TextDrawSetOutline(TxdVelo[i], 1);
    
TextDrawSetProportional(TxdVelo[i], 1);
}
public 
OnPlayerEnterVehicle(playeridvehicleidispassenger)
{
    
SetTimer("AtualizarVelo"1000true);
    return 
1;
}
//public
public AtualizarVelo(playerid)
{
    
//Informaзхes Player - Velocimetro
    
new txtVelocimetro[60], Float:Velocity[3];
    
format(txtVelocimetrosizeof(txtVelocimetro), "~W~%d ~G~~H~KM/H"GetVehicleVelocity(GetPlayerVehicleID(playerid), Velocity[0], Velocity[1], Velocity[2]));
    
TextDrawSetString(TxdVelo[playerid], txtVelocimetro);
    
TextDrawShowForPlayer(playeridTxdVelo[playerid]);
    return 
1;

Reply


Messages In This Thread
Valor nгo sendo getado na textdraw - by LucaAllexandre - 27.02.2014, 13:44
Re: Valor nгo sendo getado na textdraw - by DrTHE - 27.02.2014, 14:00
Re: Valor nгo sendo getado na textdraw - by SkullFire - 27.02.2014, 14:05
Re: Valor nгo sendo getado na textdraw - by yNexus - 27.02.2014, 15:12

Forum Jump:


Users browsing this thread: 1 Guest(s)