SA-MP Forums Archive
PutPlayerInVehicle Desync bug in 0.3e - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Bug Reports (https://sampforum.blast.hk/forumdisplay.php?fid=20)
+--- Thread: PutPlayerInVehicle Desync bug in 0.3e (/showthread.php?tid=395549)



PutPlayerInVehicle Desync bug in 0.3e - Neavorce - 26.11.2012

I do not really speak english, but I think the video will explain everything.

[ame="http://www.youtube.com/watch?v=QEtOz_iQZf4"]http://www.youtube.com/watch?v=QEtOz_iQZf4[/ame]

I have problem only 0.3e and 0.3e-R2. 0.3d and 0.3c version below works perfectly.
This is a test mode.

Код:
#include <a_samp.inc>

main( )
{

}

public OnPlayerCommandText( playerid, cmdtext[ ] )
{
	if( !strcmp( cmdtext, "/nrg", true ) )
	{
		new Float:P[3];
		GetPlayerPos( playerid, P[ 0 ], P[ 1 ], P[ 2 ] );
		
		PutPlayerInVehicle( playerid, CreateVehicle( 522, P[ 0 ], P[ 1 ], P[ 2 ], 0.0, random( 127 ), random( 127 ), 2000 ) ,0 );
		
		return 1;
	}
	return 0;
}



Re: PutPlayerInVehicle Desync bug in 0.3e - nGen.SoNNy - 04.12.2012

I will test this soon and i will come back with details!


Re: PutPlayerInVehicle Desync bug in 0.3e - Konstantinos - 04.12.2012

Confirmed. It happened a lot of times to me in different servers.


Re: PutPlayerInVehicle Desync bug in 0.3e - SwisherSweet - 04.12.2012

lol'd you guys got penise'd by nrg's
Doesn't happen to me.


Re: PutPlayerInVehicle Desync bug in 0.3e - park4bmx - 05.12.2012

Nope does not happen to me.
I use putplayerinvehicle for my /v (car name) and it works 100%
But what it might be is from OnPlayerUpdate becouse 1/2 years ago I hade a loop inside the OnPlayerUpdate to check for all players (test purposes!) and that cause the players to desynch badly, I'm talking about players. Start to disappear etc.

So check If you have any kind of inappropriate code under there.


Re: PutPlayerInVehicle Desync bug in 0.3e - Konstantinos - 05.12.2012

Quote:
Originally Posted by park4bmx
Посмотреть сообщение
Nope does not happen to me.
I use putplayerinvehicle for my /v (car name) and it works 100%
But what it might be is from OnPlayerUpdate becouse 1/2 years ago I hade a loop inside the OnPlayerUpdate to check for all players (test purposes!) and that cause the players to desynch badly, I'm talking about players. Start to disappear etc.

So check If you have any kind of inappropriate code under there.
No, he doesn't use anything like that. He also shows a blank gamemode with only a /nrg command.
It's a 0.3e bug and it happens when you are passenger and the driver spawns another vehicle. You see no driver, but an empty car moving around + the vehicle he spawned.