Label problem
#6

Thanks both,i edited the code to adapt it for my GM:

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);
        }
    }
But i get this error:

error 035: argument type mismatch (argument 1)

Error line is

pawn Код:
Attach3DTextLabelToVehicle(V3D,i,0,0,1.5);
Thanks again!
Reply


Messages In This Thread
Label problem - by Face9000 - 06.06.2011, 21:24
Re: Label problem - by dr.pepper - 06.06.2011, 21:37
Re: Label problem - by Face9000 - 06.06.2011, 21:44
Re: Label problem - by gamer931215 - 06.06.2011, 21:46
Re: Label problem - by Tee - 06.06.2011, 21:47
Re: Label problem - by Face9000 - 06.06.2011, 22:02
Re: Label problem - by PrawkC - 06.06.2011, 22:07
Re: Label problem - by Face9000 - 06.06.2011, 22:11

Forum Jump:


Users browsing this thread: 1 Guest(s)