Little help __ not hard ;p
#1

PHP код:
/* ================================================================================================================================================ */
    //Infernus 3D
    
strcat(string, "{F81414}Infernus\n");
    
strcat(string, "{FFFFFF}Get in the car to buy it");
    
DealerLabel[DealerInfernus] = Create3DTextLabel(string, COL_WHITE, 1799.1167,-1487.9091,-12.0296, 30, 0);
    
GetVehiclePos(DealerInfernus, VehX, VehY, VehZ);
    
Attach3DTextLabelToVehicle(DealerLabel[DealerInfernus], DealerInfernus, VehX, VehY, VehZ);
/* ================================================================================================================================================ */
    //Turismo 3D
    
strcat(string, "{F81414}Turismo\n");
    
strcat(string, "{FFFFFF}Get in the car to buy it");
    
DealerLabel[DealerTurismo] = Create3DTextLabel(string, COL_WHITE, 1794.2654,-1486.6549,-12.0054, 30, 0);
    
GetVehiclePos(DealerTurismo, VehX, VehY, VehZ);
    
Attach3DTextLabelToVehicle(DealerLabel[DealerTurismo], DealerTurismo, VehX, VehY, VehZ); 
Are those codes right ? it gives me no errors but when i get ig it doesn't work
Reply
#2

Take a look at the example of the Wiki: https://sampwiki.blast.hk/wiki/Attach3DTextLabelToVehicle
Reply
#3

I made it exactly like the wiki and still, not working.
Reply
#4

Do not use VehX, VehY and VehZ when attaching as they are offsets. Just use '0.0' for all of them instead and it should be working fine.
Reply
#5

Show us where the DealerInfernus is created... (CreateVehicle, or AddStaticVehicle, or similiar.)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)