SA-MP Forums Archive
Spec bug - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Spec bug (/showthread.php?tid=484778)



Spec bug - Cypress - 01.01.2014

Hello.

I have a spectate bug. When player changes interior it sometimes doesn't work and sometimes it does.

pawn Код:
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
    foreach(Player, i)
    {
        if (pData[i][P_SPECTATING] && pData[i][P_SPECTATING_ID] == playerid)
        {
            SetPlayerInterior(i, newinteriorid);
            SetPlayerVirtualWorld(i, GetPlayerVirtualWorld(playerid));
            PlayerSpectatePlayer(i, playerid, SPECTATE_MODE_NORMAL);
        }
    }
    return 1;
}
My spectate just breaks and I see nothing. Any idea?