SA-MP Forums Archive
TogglePlayerSpectating bug with OnPlayerRequestClass - 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: TogglePlayerSpectating bug with OnPlayerRequestClass (/showthread.php?tid=380710)



TogglePlayerSpectating bug with OnPlayerRequestClass - ShawnMiller1337 - 26.09.2012

When I enable
pawn Код:
TogglePlayerSpectating(playerid, 1);
OnPlayerDeath it directs to OnPlayerRequestClass with the little menu at the bottom giving the option to select a skin etc
but when I remove the
pawn Код:
TogglePlayerSpectating(playerid, 1);
the bug goes away it works fine.... How would I make it so this dosn't appear ?


Re: TogglePlayerSpectating bug with OnPlayerRequestClass - HyDrAtIc - 26.09.2012

Can you show us your OnPlayerRequestClass callback?


Re: TogglePlayerSpectating bug with OnPlayerRequestClass - ShawnMiller1337 - 26.09.2012

Quote:
Originally Posted by James_Nick
Посмотреть сообщение
Can you show us your OnPlayerRequestClass callback?
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    return 1;
}