Vehicle health textdraw color problem
#3

Код:
native GetVehicleHealth(vehicleid, &Float: health);
In layman's terms, & (ampersand) before a variable means that the data is stored in that variable.
pawn Код:
new Float: health;
GetVehicleHealth(vehicleid, health);
if (health < 1000.0)
{
    // do something
}
You might want to use TextDrawSetString for that. Destroying the textdraw many time a second isn't a good idea.
Reply


Messages In This Thread
Vehicle health textdraw color problem - by Superthijs - 17.09.2011, 13:01
Re: Vehicle health textdraw color problem - by Max_Coldheart - 17.09.2011, 14:44
Re: Vehicle health textdraw color problem - by [NoV]LaZ - 17.09.2011, 14:48
Re: Vehicle health textdraw color problem - by Sasino97 - 17.09.2011, 15:01
Re: Vehicle health textdraw color problem - by Superthijs - 17.09.2011, 17:52

Forum Jump:


Users browsing this thread: 2 Guest(s)