3D Label attaching to vehicle
#1

How do make? :3
Reply
#2

https://sampwiki.blast.hk/wiki/Attach3DTextLabelToVehicle
Reply
#3

Quote:

Thanks, now works, but how do i edit that 3D label, if i do like /editcarlaber <text>

What it needed and how do [If you are at car, then will edits that car 3D label, see where you are sitting a CAR] ?
(Dont type a command, just i need known function or what... or you can do explain..)

Quote:
Originally Posted by i514x_
Посмотреть сообщение
Still =3
Reply
#4

https://sampwiki.blast.hk/wiki/Update3DTextLabelText you mean this?
Reply
#5

What are you making typhome?!
Reply
#6

Quote:
Originally Posted by i514x_
Посмотреть сообщение
Oh thanks.

Quote:
Originally Posted by PilotXtreme
Посмотреть сообщение
What are you making typhome?!
A biggest car transformer system.
Reply
#7

:O

hows it going for you?
Reply
#8

Quote:

Thanks, now works, but how do i edit that 3D label, if i do like /editcarlabel <text>

What it needed and how do [If you are at car, then will edits that car 3D label, see where you are sitting a CAR] ?
(Dont type a command, just i need known function or what... or you can do explain..)

Quote:
Originally Posted by i514x_
Посмотреть сообщение
Still =3

Im using that:
(At OnGameModeInit)
Код:
vehicle3Dtext = Create3DTextLabel(v2rk, 0xFFFFFFAA, 0.0, 0.0, 0.0, 50.0, 0, 1 );//Creating TextLabel
Attach3DTextLabelToVehicle( vehicle3Dtext, h, 0.0, 0.0, 2.0);//Attaching Text Label To Vehicle
Reply
#9

make a command with some variables or something
Reply
#10

Quote:
Originally Posted by [FU]Victious
Посмотреть сообщение
make a command with some variables or something
More explain please.

Код:
if(strcmp(cmd,"/changecarlabel",true)==0)
	{
		if(IsPlayerInAnyVehicle(playerid)) // Checking, is player in car
		{
			new string5[256];
			format(string5, sizeof string5, "God car");
            Update3DTextLabelText(vehicleid, 0xFFFFFFAA, string5);
		}
	    return 1;
	}
Reply
#11

Код:
GetPlayerVehicleID(vehicleid)
Reply
#12

Код:
C:\Program Files\SA-MP Serverpack\gamemodes\***.pwn(13413) : warning 213: tag mismatch
Код:
Update3DTextLabelText(vehicleid, 0xFFFFFFAA, string5);
Код:
if(strcmp(cmd,"/changecarlabel",true)==0)
	{
		if(IsPlayerInAnyVehicle(playerid)) // Checking, is player in car
		{
			new string5[256];
			format(string5, sizeof string5, "test");
            Update3DTextLabelText(vehicleid, 0xFFFFFFAA, string5);
		}
	    return 1;
	}
Reply
#13

well vehicleid cant be ID of 3d text label cos its not even defined
Reply
#14

How do it then?
Reply
#15

<edited>
Reply
#16

bump, how i do then?
Reply
#17

pawn Код:
new Text3D:CarLabels[MAX_VEHICLES];
pawn Код:
CarLabels[h] = Create3DTextLabel(v2rk, 0xFFFFFFAA, 0.0, 0.0, 0.0, 50.0, 0, 1 );//Creating TextLabel
Attach3DTextLabelToVehicle( CarLabels[h], h, 0.0, 0.0, 2.0);//Attaching Text Label To Vehicle
pawn Код:
if(strcmp(cmd,"/changecarlabel",true)==0)
{
    if(IsPlayerInAnyVehicle(playerid)) // Checking, is player in car
    {
        new vehicleid = GetPlayerVehicleID(playerid);
        new string5[128];
        format(string5, sizeof string5, "test");
        Update3DTextLabelText(CarLabels[vehicleid], 0xFFFFFFAA, string5);
    }
    return 1;
}
Reply
#18

Thanks! (:
Reply
#19

Quote:

(13415) : warning 213: tag mismatch

At...

Quote:

CarLabels[h] = Create3DTextLabel(v2rk, 0xFFFFFFAA, 0.0, 0.0, 0.0, 50.0, 0, 1 );//Creating TextLabel

.....
Reply
#20

clicky!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)