SpeedoMeter Bug
#7

Yeah, but you'll have to have one textdraw for every vehicle, like:

pawn Код:
VStats[MAX_VEHICLES];
VName[MAX_VEHICLES];
SPEEDOS[MAX_VEHICLES];
HEALTH[MAX_VEHICLES];
Doors[MAX_VEHICLES];

and then you'll have to update all the vehicles variables, like:
for(new i = 0; i<MAX_VEHICLES; i++){
new vehhp = GetVehicleHealth(i);
//set the text to vehhp here
}
//and on player enter veh/playerstatechange
        vehid = GetVehicleID(playerid);
        TextDrawShowForPlayer(playerid,VStats[vehid]);
        TextDrawShowForPlayer(playerid,VName[vehid]);
        TextDrawShowForPlayer(playerid,SPEEDOS[vehid]);
        TextDrawShowForPlayer(playerid,HEALTH[vehid]);
        TextDrawShowForPlayer(playerid,Doors[vehid]);
Hope you understand how to do it, don't know what more i can explain.
Reply


Messages In This Thread
SpeedoMeter Bug - by misho1 - 20.08.2012, 21:11
Re: SpeedoMeter Bug - by Ranama - 20.08.2012, 21:20
Re: SpeedoMeter Bug - by misho1 - 20.08.2012, 22:04
Re : SpeedoMeter Bug - by ricardo178 - 20.08.2012, 22:08
Re: SpeedoMeter Bug - by Ranama - 20.08.2012, 22:16
Re: SpeedoMeter Bug - by misho1 - 20.08.2012, 22:26
Re: SpeedoMeter Bug - by Ranama - 20.08.2012, 22:34
Re: SpeedoMeter Bug - by misho1 - 20.08.2012, 22:38
Re: SpeedoMeter Bug - by Ranama - 20.08.2012, 22:43
Re: SpeedoMeter Bug - by misho1 - 20.08.2012, 23:49

Forum Jump:


Users browsing this thread: 3 Guest(s)