06.06.2011, 22:02
Thanks both,i edited the code to adapt it for my GM:
But i get this error:
error 035: argument type mismatch (argument 1)
Error line is
Thanks again!
pawn Код:
for(new i = 0; i < MAX_VEHICLES; i++)
{
for(new playerid;playerid<MAX_PLAYERS;playerid++)
{
new Float:vHealth;
new vehicleid = GetPlayerVehicleID(playerid);
GetVehicleHealth(vehicleid, vHealth);
new vhp[64];
format(vhp, sizeof(vhp), "HP: %.0f", vHealth);
V3D[i] = Create3DTextLabel(vhp,COLOR_GREEN,0,0,0,40,0,0);
Attach3DTextLabelToVehicle(V3D,i,0,0,1.5);
}
}
error 035: argument type mismatch (argument 1)
Error line is
pawn Код:
Attach3DTextLabelToVehicle(V3D,i,0,0,1.5);