25.05.2012, 17:24
A 100ms timer is set when "OnPlayerConnect" is called.
In "OnPlayerConnectEx" I have the following code:
All goes fine, and I have this code at "OnDialogResponse":
Now, when testing the script yesterday, the server would spawn me and then kick me "Server closed the connection."
When I went to test it today, it worked fine, with the exact same script.. Now, it may be gone for now, but I want to make sure it's gone forever!
Does anyone know why it was kicking me? (I tried 6-7 times yesterday with several server restarts and script changes)
This worked fine in previous versions of SA-MP
pawn Код:
SetTimerEx("OnPlayerConnectEx", 100, 0, "i", playerid);
pawn Код:
TogglePlayerSpectating(playerid, 1);
ShowPlayerDialog(.....);
pawn Код:
TogglePlayerSpectating(playerid, 0);
When I went to test it today, it worked fine, with the exact same script.. Now, it may be gone for now, but I want to make sure it's gone forever!
Does anyone know why it was kicking me? (I tried 6-7 times yesterday with several server restarts and script changes)
This worked fine in previous versions of SA-MP