Vehicle 3d Text on one car only..
#1

Hi, basicly when I add a 3d text to a vehicle it works fine but if I wanna add another one it disapears from the vehicle I added first and adds it to the new one..


pawn Код:
new Text3D:vehicle3Dtext[MAX_VEHICLES];

LEANCMD:(carsign)
{
new getcar = GetPlayerVehicleID(playerid);
if(!(IsPlayerInAnyVehicle(playerid))) return SCM(playerid, COLOR_LIGHTRED, "You have to be in a vehicle");
if(isnull(params)) return SCM(playerid, COLOR_LIGHTRED, "USAGE: "COL_WHITE"/carsign [Text]");
else
 {
     Delete3DTextLabel(vehicle3Dtext[getcar]);
     vehicle3Dtext[getcar] = Create3DTextLabel(params, -1, 0.0, 0.0, 0.0, 50.0, 0, 1);
     Attach3DTextLabelToVehicle(vehicle3Dtext[getcar], getcar, -0.8, -2.8, -0.3);
     SCM(playerid, COLOR_LIGHTRED, "USAGE: /remove_carsign "COL_WHITE" - when you're done with it.");
 }
  return 1;
}
Thanks.
Reply
#2

Wait.. You want to add 2 3d texts to one vehicle? Or do you want to add a 3d text to a different vehicle?
Reply
#3

Sorry. I want to add another 3dtext to a different vehicle.
I can basicly only have one 3dtext, not five 3dtext's to five different vehicles.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)