SA-MP Forums Archive
3DTextLabel - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: 3DTextLabel (/showthread.php?tid=416172)



3DTextLabel - Sp3cter - 16.02.2013

pawn Код:
new Text3D:TextUpCarlabeldv[MAX_DVEHICLES];
Onplayerentervehicle
pawn Код:
if(IsValidVehicle(idlabeldv) && VehicleCreated[idlabeldv] == VEHICLE_PLAYER)
        {
            new TextCarlabeldv[256];
            format(TextCarlabeldv,sizeof(TextCarlabeldv),"{ffffff}Proprietar {8400ff}[%s]\n{ffffff}Numar Inmatriculare {8400ff}[%s]",VehicleOwner[idlabeldv],VehicleNumberPlate[idlabeldv]);
            TextUpCarlabeldv[idlabeldv] = Create3DTextLabel(TextCarlabeldv, 0xFFFFFFAA ,0,0,0,20.0,0);
            Attach3DTextLabelToVehicle(TextUpCarlabeldv[idlabeldv],idlabeldv,0.0,0.0,0.0);
        }
Onplayerexitvehicle
pawn Код:
new idlabeldv = GetVehicleID(vehicleid);
    if(IsValidVehicle(idlabeldv) && VehicleCreated[idlabeldv] == VEHICLE_PLAYER)
        {
            Delete3DTextLabel(TextUpCarlabeldv[idlabeldv]);
        }
The problem is :
3DTEXT don't appear , what is the solve?