SA-MP Forums

Go Back   SA-MP Forums > SA-MP > Bug Reports

Reply
 
Thread Tools Display Modes
Old 26/03/2014, 02:35 PM   #1
diclofoss
Little Clucker
 
Join Date: Apr 2013
Posts: 30
Reputation: 14
Default After detaching trailer from vehicle sometimes other users see trailer attached to vehicle

Hello!
I have created simple command
Code:
	if(!strcmp(cmd, "/detach", true)) {		
		SendClientMessage(playerid,COLOR_RED, "Trying to detach");
		new vehicleid = GetPlayerVehicleID(playerid);
		if (!vehicleid)
			return 1;
		SendClientMessage(playerid,COLOR_RED, "Vehicle found");
		if(IsTrailerAttachedToVehicle(vehicleid)) {
			SendClientMessage(playerid,COLOR_RED, "Trailer found");
			DetachTrailerFromVehicle(vehicleid);
			SendClientMessage(playerid,COLOR_RED, "Trailer detached");
		}
		return 1;
	}
Testcase is:
Player A join the game
Player B join the game
A and B meet in the same place where Trailer (435) and Vehicle (515) located
A gets a Vehicle and attaches trailer.
B noticed that Vehicle and trailer are attached
A types /detach command and go forward by vehicle
B noticed that Trailer is detached
A go backward by vehicle and attaches trailer.
B noticed that Vehicle and trailer are attached
A types /detach command and go forward by vehicle
B noticed that Trailer and Vehicle are still attached. In 2-3 mintes after player A noticed a trailer behind vehicle suddenly
diclofoss is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
NPC Attach trailer to vehicle? WillyP Scripting Help 4 16/06/2012 02:34 AM
Creating a vehicle with a trailer MP2 Scripting Help 1 12/10/2011 06:41 AM
Detecting if trailer is attached to vehicle? [WF]Demon Help Archive 2 31/07/2011 04:55 AM
Trailer attached to vehicle LegendNissanGTR Help Archive 0 11/12/2010 02:36 PM
Transporting Vehicle and its trailer to an Interior and keeping it attached adsy Help Archive 16 17/03/2010 12:26 PM


All times are GMT. The time now is 07:30 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.