SA-MP Forums Archive
[ajuda] Attach3DTextLabelToVehicle - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [ajuda] Attach3DTextLabelToVehicle (/showthread.php?tid=338808)



[ajuda] Attach3DTextLabelToVehicle - GReeN_WOoD - 01.05.2012

bom galera, eu quero adicionar um texto em cima dos veiculos de civil.

COLOQUEI ISTO EM ONGAMEMODEINIT.
PHP код:
    new newcar GetPlayerVehicleID(playerid);
    if(
IsABikeCar(newcar))
    {
        new 
Text3D:SpawnCivil
        newcar 
Create3DTextLabel("{00FF00}Brasil {FFD700}Cold{1E90FF}Life\n{FFFFFF}Veнculo Civil"0xFFFFFFFF0.00.00.050.00);
        
Attach3DTextLabelToVehicle(SpawnCivilnewcar0.00.02.0);
    } 
Estб dando erros '-' , alguem me ajuda ?


Re: [ajuda] Attach3DTextLabelToVehicle - Lohran - 01.05.2012

quais erros?


Re: [ajuda] Attach3DTextLabelToVehicle - rjjj - 01.05.2012

Adicione isto ao final do OnGameModeInit :


pawn Код:
for(new x = 1; x <= MAX_VEHICLES; x++)
    {
        if(IsABikeCar(x))
        {
            new Text3D:VeiculoCivilTexto3D;
            VeiculoCivilTexto3D = Create3DTextLabel("{00FF00}Brasil {FFD700}Cold{1E90FF}Life\n{FFFFFF}Veнculo Civil", 0xFFFFFFFF, 0.0, 0.0, 0.0, 50.0, 0, 1 );
            Attach3DTextLabelToVehicle(VeiculoCivilTexto3D, x, 0.0, 0.0, 2.0);
        }
    }


Espero ter ajudado .