SA-MP Forums Archive
Towing Car - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Towing Car (/showthread.php?tid=97036)



Towing Car - Tom_Dedi - 12.09.2009

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?




Re: Towing Car - d0 - 12.09.2009

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.




Re: Towing Car - Tom_Dedi - 12.09.2009

can i fix this without Attach/Detach??


Re: Towing Car - d0 - 12.09.2009

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


Re: Towing Car - Stas92 - 12.09.2009

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