HEALTH[playerid] = CreatePlayerTextDraw(playerid,20.000000, 272.000000, "");
PlayerTextDrawBackgroundColor(playerid,HEALTH[playerid], 255);
PlayerTextDrawFont(playerid,HEALTH[playerid], 2);
PlayerTextDrawLetterSize(playerid,HEALTH[playerid], 0.150000, 1.000000);
PlayerTextDrawColor(playerid,HEALTH[playerid], -1);
PlayerTextDrawSetOutline(playerid,HEALTH[playerid], 0);
PlayerTextDrawSetProportional(playerid,HEALTH[playerid], 1);
PlayerTextDrawSetShadow(playerid,HEALTH[playerid], 1);
SPEEDOS[playerid] = CreatePlayerTextDraw(playerid,19.000000, 282.000000, "");
PlayerTextDrawBackgroundColor(playerid,SPEEDOS[playerid], 255);
PlayerTextDrawFont(playerid,SPEEDOS[playerid], 2);
PlayerTextDrawLetterSize(playerid,SPEEDOS[playerid], 0.190000, 1.000000);
PlayerTextDrawColor(playerid,SPEEDOS[playerid], -1);
PlayerTextDrawSetOutline(playerid,SPEEDOS[playerid], 0);
PlayerTextDrawSetProportional(playerid,SPEEDOS[playerid], 1);
PlayerTextDrawSetShadow(playerid,SPEEDOS[playerid], 1);
(1443) : warning 213: tag mismatch
(1444) : warning 213: tag mismatch
(1445) : warning 213: tag mismatch
(1446) : warning 213: tag mismatch
(1447) : warning 213: tag mismatch
(1448) : warning 213: tag mismatch
(1449) : warning 213: tag mismatch
(1450) : warning 213: tag mismatch
(1452) : warning 213: tag mismatch
(1453) : warning 213: tag mismatch
(1454) : warning 213: tag mismatch
(1455) : warning 213: tag mismatch
(1456) : warning 213: tag mismatch
(1457) : warning 213: tag mismatch
(1458) : warning 213: tag mismatch
(1459) : warning 213: tag mismatch
(3993) : warning 213: tag mismatch
(3994) : warning 213: tag mismatch
(3998) : warning 213: tag mismatch
(3999) : warning 213: tag mismatch
new Text:SPEEDOS[MAX_PLAYERS];
new Text:HEALTH[MAX_PLAYERS];
GetVehicleVelocity(vehicleid,speed_x,speed_y,speed_z);
final_speed = floatsqroot(((speed_x*speed_x)+(speed_y*speed_y))+(speed_z*speed_z))*250.666667; // 250.666667 = kmph // 199,4166672= mph
final_speed_int = floatround(final_speed,floatround_round);
format(speed_string,256,"~y~Speed: ~w~%i",final_speed_int);
PlayerTextDrawSetString(playerid,SPEEDOS[playerid], speed_string);
PlayerTextDrawShow(playerid,SPEEDOS[playerid]);
GetVehicleHealth(vehicleid,vehicle_health);
final_vehicle_health = floatround(floatround(vehicle_health - 250)/ 7.5); //This will make the health show at 100 when the vehicle is not damaged and at 0 when it is in fire.
format(health_string,256,"~r~Health: ~w~%i", final_vehicle_health);
PlayerTextDrawSetString(playerid,HEALTH[playerid], health_string);
PlayerTextDrawShow(playerid,HEALTH[playerid]);
new PlayerText:SPEEDOS[MAX_PLAYERS];
new PlayerText:HEALTH[MAX_PLAYERS];
Should be
pawn Код:
|