13.01.2013, 14:24
Hello, i get no errors but nothing happens :S
i get no text on screen by submiting dialog with ID 1 :S
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(dialogid)
{
// Login Box
case 1:
{
SendClientMessageToAll(0xC4C4C4FF, "HOLA");
if(response)
{
SendClientMessageToAll(0xC4C4C4FF, "HOLA");
// Conseguir Datos
//SetUserInfo(playerid, inputtext);
//if(!strcmp(inputtext, user[playerid][username], true))
// ShowPlayerDialog(playerid, dialogs[passbox], DIALOG_STYLE_PASSWORD, "{FF0000}Contrasenya", "Tu contrasenya:", "Conexion", "Salir");
}
}
// Pass Box
case 2:
{
if(response)
{
if(!strcmp(inputtext, user[playerid][userpass], true))
ShowPlayerDialog(playerid, dialogs[logincorrect], DIALOG_STYLE_MSGBOX, "{FF0000}Conectado", "Se ha logueado satisfactoriamente.", "Entrar", "Salir");
else
SendClientMessageToAll(0xC4C4C4FF, "Contrasenya Mal!");
}
}
}

