Towing Car
#1

Hello,

i have a problem.
On my Server i have in 0.2X a towing script
Quote:

if(strcmp(cmd, "/abschleppen", true)==0)
{
if(IsPlayerInAnyVehicle(playerid))
{
if(pVeh != 525)
{
SendClientMessage(playerid, COLOR_GREY, "Du bist in keinem Abschleppwagen!");
return 1;
}
new vehid = GetPlayerVehicleID(playerid);
if(!IsTrailerAttachedToVehicle(vehid))
{
new Float, Float:y, Float:z;
GetVehiclePos(vehid, x, y, z );
new vehiclet;
GetVehicleWithinDistance(playerid, x, y, z, 100.0, vehiclet);
AttachTrailerToVehicle(vehiclet, vehid);
}
else
{
DetachTrailerFromVehicle(vehid);
}
}
return 1;
}

but on 0.3 it dont work why?

Reply
#2

Quote:

Outstanding problems:
Attach/Detach Trailer still doesn't work although other trailer related functions should be fixed.
Fight styles animations can generate exceptions.
NPC binary needs additional connection security and optimisation.

Reply
#3

can i fix this without Attach/Detach??
Reply
#4

wait for the next rc release. Then it's probably fixed.
Reply
#5

Hope so ... waiting for this function, too.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)