OnDialogResponse error
#1

Hello, i get no errors but nothing happens :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!");
			}			
		}
	}
i get no text on screen by submiting dialog with ID 1 :S
Reply


Messages In This Thread
OnDialogResponse error - by redigaffix - 13.01.2013, 14:24
Re: OnDialogResponse error - by JustinAn - 13.01.2013, 15:09

Forum Jump:


Users browsing this thread: 1 Guest(s)