Server kick me when using TogglePlayerSpectating - 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: Server kick me when using TogglePlayerSpectating (
/showthread.php?tid=429715)
Server kick me when using TogglePlayerSpectating -
kizla - 10.04.2013
I have problem. When dialog is called the server kicks me.. Code of dialog:
pawn Code:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
...
case DONED:
{
TogglePlayerSpectating(playerid, 0);
}
...
I call TogglePlayerSpectating under my own public callback and set it to 1.. and after the player click on dialog button the server kicks player..
Re: Server kick me when using TogglePlayerSpectating -
FalconX - 10.04.2013
NVM.
Re: Server kick me when using TogglePlayerSpectating -
MP2 - 10.04.2013
This happens if no spawnpoint is set for the player. Use SetSpawnInfo beforehand.
Re: Server kick me when using TogglePlayerSpectating -
kizla - 10.04.2013
Quote:
Originally Posted by MP2
This happens if no spawnpoint is set for the player. Use SetSpawnInfo beforehand.
|
well i interpolate camera when player connect and shows dialog for login and when player click button i toggleplayerspectating to 0... soo i need to use SetSpawnInfo in callback OnPlayerConnect??