PRoGeR_
Дебютант
PHP:
new float:health, float:result;
GetVehicleHealth(GetPlayerVehicleID(playerid), health);
result = (0.08 * health);
PlayerTextDrawTextSize(playerid, PlaneInfoPTD[playerid][4], result, 11.2);
PlayerTextDrawShow(playerid, PlaneInfoPTD[playerid][4]);
new debuglog[144];
format(debuglog, sizeof(debuglog), "Value: %.1f | Health: %.1f", result, health);
SCM(playerid, -1, debuglog);
health = 1000.0
result = 0.0
Я уже не знаю, что с этим делать...
Делал значение хп для самолёта ProgressBar'ом. TextDraw отображается, всё проверял. Я не знаю, почему оно так криво считает...
P.S. 0.08 вместо (health / 10.0) * 0.8
