06.06.2011, 21:24
Hi guys i got this code:
Placed OnPlayerEnterVehicle,but i get this errors:
That code is to show a textlabel on all vehicles with their HP,but seems don't work.
pawn Код:
for(new i = 0; i < MAX_VEHICLES; i++)
{
new Float:vx, Float:vy, Float:vz, Float:vHealth;
GetVehicleHealth(vehicleid, vHealth);
new vhp[128];
new Text3D:V3D = Create3DTextLabel(vhp,COLOR_GREEN,vx,vy,vz, 50, 0,0);
Attach3DTextLabelToVehicle(V3D,,vx, vy, vz+1.5);
format(vhp, sizeof(vhp), "HP: %.0f", vHealth);
}
Код:
error 029: invalid expression, assumed zero warning 215: expression has no effect warning 215: expression has no effect warning 215: expression has no effect error 001: expected token: ";", but found ")" error 029: invalid expression, assumed zero fatal error 107: too many error messages on one line 4 Errors.