11.05.2015, 16:46
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:
It shows everything, the message, set the skin and the camera, but after this, get server closed connection.
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");
}
}
}