textlabel problem
#5

pawn Код:
new warvehicles[5]
new Text3D:vLabel[MAX_VEHICLES];

public OnGameModeInit()
{
    warvehicle[0] = CreateVehicle(.....);
    warvehicle[1] = CreateVehicle(.....);
    //same...........
    return 1;
}

public OnVehicleSpawn(vehicleid);
{
    if(warvehicle[0] == vehicleid)
    {
        vLabel = Create3DTextLabel( "War Vehicle", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
        Attach3DTextLabelToVehicle( vLabel , vehicleid, 0.0, 0.0, 2.0);
    }
    return 1;
}
As you can see i didnt finished the code and i suggest you to destroy vLabel on vehicle death co if you dont it will bug
Reply


Messages In This Thread
textlabel problem - by Face9000 - 10.06.2011, 13:10
Re: textlabel problem - by randomkid88 - 10.06.2011, 14:38
Re: textlabel problem - by Face9000 - 10.06.2011, 14:48
Re: textlabel problem - by Face9000 - 11.06.2011, 08:41
Re: textlabel problem - by DRIFT_HUNTER - 11.06.2011, 09:09
Re: textlabel problem - by Face9000 - 11.06.2011, 10:16
Re: textlabel problem - by randomkid88 - 11.06.2011, 16:58
Re: textlabel problem - by Face9000 - 11.06.2011, 17:14
Re: textlabel problem - by randomkid88 - 11.06.2011, 18:22

Forum Jump:


Users browsing this thread: 9 Guest(s)