Trouble attaching trailers
#1

I have this code and i want to attach the trailer to the another one... someone can help me? sorry my english...
(See the image to understand whats is happening)
Код:
CMD:train(playerid,params[])
{
    new Float:vX, Float:vY, Float:vZ;
    GetPlayerPos(playerid, vX, vY, vZ);
    new veh = CreateVehicle(515, vX, vY, vZ, 0, 0, 1, -1), trail = CreateVehicle(591, vX, vY, vZ, 0, 0, 1, -1);
    PutPlayerInVehicle(playerid, veh, 0);
    AttachTrailerToVehicle(trail, veh);
    AttachTrailerToVehicle(CreateVehicle(435, vX, vY, vZ, 0, 0, 1, -1), trail);
    return 1;
}
Reply
#2

Here you Go the New CMD

PHP код:
CMD:train(playerid,params[])
{
    new 
Float:vXFloat:vYFloat:vZ;
    
GetPlayerPos(playeridvXvYvZ);
    new 
veh CreateVehicle(515vXvYvZ001, -1), trail CreateVehicle(591vXvYvZ001, -1);
    
PutPlayerInVehicle(playeridveh0);
    
AttachTrailerToVehicle(trailveh);
    return 
1;

Reply
#3

Quote:
Originally Posted by GGW
Посмотреть сообщение
Here you Go the New CMD

PHP код:
CMD:train(playerid,params[])
{
    new 
Float:vXFloat:vYFloat:vZ;
    
GetPlayerPos(playeridvXvYvZ);
    new 
veh CreateVehicle(515vXvYvZ001, -1), trail CreateVehicle(591vXvYvZ001, -1);
    
PutPlayerInVehicle(playeridveh0);
    
AttachTrailerToVehicle(trailveh);
    return 
1;

Is not this :/... In the spanish forum they solved the problem... https://sampforum.blast.hk/showthread.php?tid=531664
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)