Server kick me when using TogglePlayerSpectating
#1

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..
Reply
#2

NVM.
Reply
#3

This happens if no spawnpoint is set for the player. Use SetSpawnInfo beforehand.
Reply
#4

Quote:
Originally Posted by MP2
View Post
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??
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)