Bug while changing skin in a vehicle -
Battlezone - 16.06.2014
I get a bug everytime a set my skin in a vehicle:
Re: Bug while changing skin in a vehicle -
VladimirMark - 16.06.2014
It's not a bug. Just get out of the vehicle If you want to change skin.
Re: Bug while changing skin in a vehicle -
Battlezone - 16.06.2014
Since something strange happens, I assume it's a bug, & I think it can be fixed
Re: Bug while changing skin in a vehicle -
PrivatioBoni - 17.06.2014
Quote:
Originally Posted by VladimirMark
It's not a bug. Just get out of the vehicle If you want to change skin.
|
It's quite obviously a bug.
I think there's a(n) (unofficial) fix for it.
Re: Bug while changing skin in a vehicle -
Konstantinos - 17.06.2014
Let's say you change the skin by a command. Check in the command, if the player is in any vehicle and if so, get the seat and the vehicleid (store them to variables), remove the player from the vehicle, set the skin, and put the player in the vehicleid and to the seatid you just stored.
Re: Bug while changing skin in a vehicle -
Abagail - 17.06.2014
Using Konstatnio's logic a fix could be,
pawn Код:
stock SetSkinEx(playerid, skinid)
{
if(!IsPlayerInAnyVehicle(playerid)) return SetPlayerSkin(playerid, skinid);
new vehicleid, seatid;
vehicleid = GetPlayerVehicleID(playerid);
seatid = GetPlayerVehicleSeat(playerid);
if(seatid == 128) return 0;
RemovePlayerFromVehicle(playerid);
SetPlayerSkin(playerid, skinid);
PutPlayerInVehicle(playerid, vehicleid, seatid);
return 1;
}
NOTE: The above code hasn't been
tested.
Re: Bug while changing skin in a vehicle -
Battlezone - 17.06.2014
Well , that's smart and working
Re: Bug while changing skin in a vehicle -
rangerxxll - 17.06.2014
I believe fixes.inc also fixes this issue.
https://sampforum.blast.hk/showthread.php?tid=292813
Re: Bug while changing skin in a vehicle -
iFarbod - 18.06.2014
pawn Код:
/*
native SetSkin(playerid, skinid);
*/
stock SetSkin(playerid, skinid)
{
new
Float:POS[3];
GetPlayerPos(playerid, POS[0], POS[1], POS[2]);
if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_DUCK && !IsPlayerInAnyVehicle(playerid))
{
SetPlayerPos(playerid, POS[0], POS[1], POS[2]);
return SetTimerEx("SkinSetDelayTimer", 2000, 0, "ii", playerid, skinid);
}
if(GetPlayerVehicleID(playerid))
{
RemovePlayerFromVehicle(playerid);
return SetTimerEx("SkinSetDelayTimer", 2500, 0, "ii", playerid, skinid);
}
}
forward SkinSetDelayTimer(playerid, skinid);
public SkinSetDelayTimer(playerid, skinid)
{
return SetPlayerSkin(playerid, skinid);
}
I Have written it in the SAMP editor.
(not tested)
Re: Bug while changing skin in a vehicle -
Abagail - 18.06.2014
Whats the point of that? You just might as-well remove them from the vehicle, and then call SetPlayerSkin. If your going to remove them from the vehicle you should put them back inside it like they were.
Re: Bug while changing skin in a vehicle -
Clad - 19.06.2014
You get that because you get kinda synced, Don't do that when you're in vehicle and it's done

.
Re: Bug while changing skin in a vehicle -
Krexx - 08.07.2014
This is not a bug. You can change it by getting out of the vehicle, and getting back into it.
Re: Bug while changing skin in a vehicle -
BodyBoardVEVO - 08.07.2014
If you enter a vehicle and change the skin beetween out of vehicle and entering vehicle, you will be frozen
Re: Bug while changing skin in a vehicle -
DavidKember - 08.07.2014
It's not only you that has that problem, i have played on different servers, and they had it aswell.
Re: Bug while changing skin in a vehicle -
Abagail - 08.07.2014
Why did you even bump this? If you would've read it you would've known it was already answered.
Re: Bug while changing skin in a vehicle -
[MM]18240[FMB] - 09.07.2014
On topic: I believe there was a fix for this I found somewhere on here in an earlier stunting gamemode I was making.
Offtopic: @Abagail, you do realize that

would never work, right? You're welcome for telling you about it, please +rep me.
Re: Bug while changing skin in a vehicle -
Abagail - 09.07.2014
Ok... Here's the include smart-ass,
pawn Code:
stock Sigh(askingid)
{
new pName[24];
GetPlayersName(askingid, pName, 24);
if(strcmp(pName, "[MM]18240[FMB]", true) != -1) return Ban(askingid);
return 1;
}
Your welcome.
Re: Bug while changing skin in a vehicle -
PrivatioBoni - 10.07.2014
plez lern to indent

it hurts ma eyez
Re: Bug while changing skin in a vehicle -
Battlezone - 10.07.2014
Please don't reply here anymore. /lock.