Zadnja Pozicija Propadanje

Započeo desibro, Oktobar 18, 2022, 17:54:07 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Pre par dana sam postavio post u vezi Zadnje Pozicije tjst ponovnim ulaskom na server i spawnom na tu zadnju poziciju.
Iz nekog razloga kada izadjem sa servera dok sam u enterijeru i posle kad udjem propadam kroz istu tu...
Deo skripte: 
}
forward PlayerGameCrashed(playerid);
public PlayerGameCrashed(playerid)
{
    if(PI[playerid][Zatvor] == 0)
	{
	    SetPlayerPos(playerid, PI[playerid][pPos_x], PI[playerid][pPos_y], PI[playerid][pPos_z]);
	    SetPlayerHealth_H(playerid, 99);
	    g_SetPlayerInterior(playerid, PI[playerid][pInt]);
	    g_SetPlayerVirtualWorld(playerid, PI[playerid][pVirWorld]);

	}
}


}
stock UpdejtIgracevihPozicija(playerid)
{
	if(IsPlayerConnected(playerid))
	{
 		if(UlogovanProvera[playerid] == 1)
   		{
   		    new Float:x, Float:y, Float:z;
	    	//new Float:Health, Float:Armor;
			new PInterior,World;
			PInterior = GetPlayerInterior(playerid);
			World = GetPlayerVirtualWorld(playerid);
			GetPlayerPos(playerid,x,y,z);
   		    /*if(AdminDuty[playerid] == 0 || HelperDuty[playerid] == 0)
   		    {
	    		GetPlayerHealth(playerid, Health);
				GetPlayerArmour(playerid, Armor);
				PI[playerid][pHealth] = Health;
				PI[playerid][pArmour] = Armor;
			}*/
			PI[playerid][pInt] = PInterior,
			PI[playerid][pVirWorld] = World;
			PI[playerid][pPos_x] = x;
			PI[playerid][pPos_y] = y;
			PI[playerid][pPos_z] = z;
		}
	}
}


}
stock g_SetPlayerVirtualWorld(pID, vwid)
{
	PI[pID][pVirWorld] = vwid;
    SetPlayerVirtualWorld(pID, vwid);
	return PI[pID][pVirWorld];
}
stock g_SetPlayerInterior(pID, intid)
{
	PI[pID][pInt] = intid;
    SetPlayerInterior(pID, intid);
	return PI[pID][pInt];
}


Moze li mi neko reci sta nisam uradio kako treba?

nisi dobro stavio virtual world i interior