0.3x Interior Problem
#1

When I'm passenger and Vehicle's driver enter and exit tuning garage, my interior stays in garage's interior.
Reply
#2

Maybe you can fix it with this:
pawn Код:
public OnEnterExitModShop(playerid, enterexit, interiorid)
{

new vid=GetPlayerVehicleID(playerid);
for(new i; i<MAX_PLAYERS; i++)
{
if(IsPlayerInVehicle(i,vid))
{
if(GetPlayerSeat(i)==0)
{
new int=GetPlayerInterior(i);
SetPlayerInterior(playerid,int);
}
}
}
Reply
#3

How you can set interior if player already have interior? May be set interior 0?
Reply
#4

change the script to say for instead
Reply
#5

Quote:
Originally Posted by Amora187
Посмотреть сообщение
Maybe you can fix it with this:
pawn Код:
public OnEnterExitModShop(playerid, enterexit, interiorid)
{

new vid=GetPlayerVehicleID(playerid);
for(new i; i<MAX_PLAYERS; i++)
{
if(IsPlayerInVehicle(i,vid))
{
if(GetPlayerSeat(i)==0)
{
new int=GetPlayerInterior(i);
SetPlayerInterior(playerid,int);
}
}
}
It is solution we can make but SA:MP developers should solve this problem in 0.3x. It doesn't happen in earlier SA:MP versions.
Reply
#6

Quote:
Originally Posted by Evoturk
Посмотреть сообщение
It is solution we can make but SA:MP developers should solve this problem in 0.3x. It doesn't happen in earlier SA:MP versions.
Solving Problem = Solution.
Reply
#7

Quote:
Originally Posted by T0pAz
Посмотреть сообщение
Solving Problem = Solution.
So clever...
Reply
#8

Quote:
Originally Posted by Amora187
Посмотреть сообщение
Maybe you can fix it with this:
pawn Код:
public OnEnterExitModShop(playerid, enterexit, interiorid)
{

new vid=GetPlayerVehicleID(playerid);
for(new i; i<MAX_PLAYERS; i++)
{
if(IsPlayerInVehicle(i,vid))
{
if(GetPlayerSeat(i)==0)
{
new int=GetPlayerInterior(i);
SetPlayerInterior(playerid,int);
}
}
}
That code would set the driver's interior to his own interior, I don't see how that would help. You're looping through the players and if the person's driver seat is 0 (driver seat), you...get his interior and set the driver (playerid) to that interior.

Is something like this what you're looking for, Amora?

Код:
public OnEnterExitModShop(playerid, enterexit, interiorid) {
	new vid = GetPlayerVehicleID(playerid);
	for (new i; i < MAX_PLAYERS; i++) {
		if(IsPlayerInVehicle(i, vid) && GetPlayerVehicleSeat(i) > 0) {
			SetPlayerInterior(i, GetPlayerInterior(playerid));
		}
	}
	return 1;
}
Either way, this bug should be easily fixable with server-side scripts.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)