Kick without reason. Help. - 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: Kick without reason. Help. (
/showthread.php?tid=573902)
Kick without reason. Help. -
xHanks - 11.05.2015
Hello people, today i was editing my own 0 gamemode. But something is wrong here. When i put my password on the register dialog, it show the following dialog, but kick without any reason:
PHP код:
case 2:
{
if(response == 0) { }
if(response == 1)
{
if(strlen(inputtext) < 6)
{
SendClientMessage(playerid, 0xAA3333AA, "La contraseсa ha de tener un minнmo de 6 carбcteres.");
ShowPlayerDialog(playerid,DIALOG_REGISTRO, DIALOG_STYLE_INPUT, "{58ACFA}Rol Iberico.", "{FACC2E}· ЎEs la primera vez que entras a Rol Iberico!\n{FFFFFF}· Introduce una contraseсa para registrarte.", "Registrarse.", "Salir.");
}
else if(strlen(inputtext) >= 6)
{
format(pInfo[playerid][Clave], 254, inputtext); //Contraseсa con Hash prуximamente.
TogglePlayerSpectating(playerid, 0);
TogglePlayerControllable(playerid,0);
SetPlayerPos(playerid, -2579.2556,1059.3751,2534.2139);
SetPlayerSkin(playerid,2);
ApplyAnimation(playerid,"PED","SEAT_IDLE",4,0,0,0, 1,0,1);
SetPlayerFacingAngle(playerid, 275.0860);
SetPlayerCameraPos(playerid, -2577.7827,1062.2019,2534.2244);
SetPlayerCameraLookAt(playerid, -2579.2556,1059.3751,2534.2139);
new string[254];
format(string, sizeof(string), "{58ACFA}%s{FFFFFF}, estбs llegando a Los Santos. {8A0808}Rellena los siguientes datos{FFFFFF}.", ReplaceString("_"," ", Nombre(playerid)));
SendClientMessage(playerid, -1, string);
ShowPlayerDialog(playerid, DIALOG_SEXO, DIALOG_STYLE_MSGBOX, "{58ACFA}Rol Iberico.", "їDe quй sexo йs tъ personaje?", "Hombre", "Mujer");
}
}
}
It shows everything, the message, set the skin and the camera, but after this, get server closed connection.
Re: Kick without reason. Help. -
Konstantinos - 11.05.2015
https://sampwiki.blast.hk/wiki/Kick
Read "Important Note".
Respuesta: Re: Kick without reason. Help. -
xHanks - 11.05.2015
Quote:
Originally Posted by Konstantinos
|
And what can make me server closed the connection?
Re: Kick without reason. Help. -
Konstantinos - 11.05.2015
I'm not sure.
If the script kicks a player and sends a message/dialog, delay the kick (as I mentioned above) so you'll get that info (if is given of course).