3D-Text
#1

new Admincar,Admincar3dtext;
Admincar=AddStaticVehicle(462,1772.5779,-1681.0626,14.0249,91.2874,118,1);
Admincar3dtext = Create3DTextLabel("Admincar", 0x009D00FF,1772.5779,-1681.0626,14.0249, 50,0);
Attach3DTextLabelToVehicle(Admincar,Admincar3dtex, 0.0,0.0,2.0);

but then comes this warning
C:\Users\Melvin\Desktop\Neuer Ordner\gamemodes\LoGTA.pwn(71) : warning 213: tag mismatch
C:\Users\Melvin\Desktop\Neuer Ordner\gamemodes\LoGTA.pwn(72) : warning 213: tag mismatch

thanks for help
Reply
#2

pawn Код:
new Admincar,Admincar3dtext;
Admincar=AddStaticVehicle(462,1772.5779,-1681.0626,14.0249,91.2874,118,1);
Admincar3dtext = Create3DTextLabel("Admincar", 0x009D00FF,1772.5779,-1681.0626,14.0249, 50,0,1);
Attach3DTextLabelToVehicle(Adminca3dtext,Admincar, 0.0,0.0,2.0);
Try that one ^^
Reply
#3

i tried but:

C:\Users\Melvin\Desktop\Neuer Ordner\gamemodes\LoGTA.pwn(71) : warning 213: tag mismatch
C:\Users\Melvin\Desktop\Neuer Ordner\gamemodes\LoGTA.pwn(72) : warning 213: tag mismatch
Reply
#4

shouldnt it be:
pawn Код:
new Admincar,Text3D:Admincar3dtext;
Admincar=AddStaticVehicle(462,1772.5779,-1681.0626,14.0249,91.2874,118,1);
Admincar3dtext = Create3DTextLabel("Admincar", 0x009D00FF,1772.5779,-1681.0626,14.0249, 50,0,0);
Attach3DTextLabelToVehicle(Admincar3dtext,Admincar, 0.0,0.0,2.0);
edit: whats line 71 and 72?
Reply
#5

new Admincar,Text3D:Admincar3dtext;//line 69
Admincar=AddStaticVehicle(462,1772.5779,-1681.0626,14.0249,91.2874,118,1);//70
Admincar3dtext = Create3DTextLabel("Admincar", 0x009D00FF,1772.5779,-1681.0626,14.0249, 50,0,0);//line 71
Attach3DTextLabelToVehicle(Admincar3dtext,Admincar , 0.0,0.0,2.0);//72

C:\Users\Melvin\Desktop\Neuer Ordner\gamemodes\LoGTA.pwn(71) : warning 213: tag mismatch
C:\Users\Melvin\Desktop\Neuer Ordner\gamemodes\LoGTA.pwn(72) : warning 213: tag mismatch

how can i put the text in a pawn text?
Reply
#6

Melvin, use [ pawn ] //PAWN CODE [ /pawn ]
And btw, I'm not advanced with 3D labels. I don't need them And read this:

https://sampwiki.blast.hk/wiki/Create3DTextLabel
and
https://sampwiki.blast.hk/wiki/Attach3DTextLabelToVehicle

Maybe that that will help
Reply
#7

it works but in samp wiki is a mistake:

pawn Код:
public OnGameModeInit ( )
{
    new vehicle_id, Text3D:vehicle3Dtext;
    //Creating TextLabel
    vehicle3Dtext = Create3DTextLabel( "Example Text", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
    //Creating the Vehicle
    vehicle_id = CreateVehicle( 510, 0.0. 0.0, 15.0, 5, 0, 120 );//here must be a komma:D
    //Attaching Text Label To Vehicle
    Attach3DTextLabelToVehicle( vehicle3Dtext, vehicle_id, 0.0, 0.0, 2.0);
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)