Kick without reason. Help.
#1

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(playerid0xAA3333AA"La contraseсa ha de tener un minнmo de 6 carбcteres.");
            
ShowPlayerDialog(playerid,DIALOG_REGISTRODIALOG_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], 254inputtext); //Contraseсa con Hash prуximamente.
                    
TogglePlayerSpectating(playerid0);
                    
TogglePlayerControllable(playerid,0);
                        
SetPlayerPos(playerid, -2579.2556,1059.3751,2534.2139);
                        
SetPlayerSkin(playerid,2);
                        
ApplyAnimation(playerid,"PED","SEAT_IDLE",4,0,0,01,0,1);
                    
SetPlayerFacingAngle(playerid275.0860);
                    
SetPlayerCameraPos(playerid, -2577.7827,1062.2019,2534.2244);
                    
SetPlayerCameraLookAt(playerid, -2579.2556,1059.3751,2534.2139);
                    new 
string[254];
                    
format(stringsizeof(string), "{58ACFA}%s{FFFFFF}, estбs llegando a Los Santos. {8A0808}Rellena los siguientes datos{FFFFFF}."ReplaceString("_"," "Nombre(playerid)));
                    
SendClientMessage(playerid, -1string);
                    
ShowPlayerDialog(playeridDIALOG_SEXODIALOG_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.
Reply
#2

https://sampwiki.blast.hk/wiki/Kick

Read "Important Note".
Reply
#3

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
And what can make me server closed the connection?
Reply
#4

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).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)