iZCMD + Dialog = Unkown Command?
#9

Quote:
Originally Posted by ProDude
Посмотреть сообщение
Try this one in your current script i think this code will work
Код:
CMD:test(playerid, params[])
{
	new str[1000];
	format(str, sizeof(str), "Da da da");
	ShowPlayerDialog(playerid, DIALOG_TEST, DIALOG_STYLE_MSGBOX, "Test Dialog", str, "Ok", "");
	return 1;
}
Hmmm using this much string for this "Da da da" ? Even 15 would be a good to go.

Quote:
Originally Posted by Cepillado
Посмотреть сообщение
Nope, both still give out "Unknown Command", and the dialog doesn't show up.

Код:
CMD:test(playerid, params[])
{
	ShowPlayerDialog(playerid, DIALOG_TEST, DIALOG_STYLE_MSGBOX, "Test Dialog", "Da da da", "OK", "");
	return true;
}

CMD:test2(playerid, params[])
{
	ShowPlayerDialog(playerid, DIALOG_TEST, DIALOG_STYLE_MSGBOX, "Test Dialog", "Da da da", "OK", "");
	return CMD_SUCCESS;
}
Update: I just made a new GameMode, with just those 2 commands and the OnDialogResponse callback, and it works. Does that mean that I have something on my current script that interferes with the command? I have no idea of what could it be.
Yes, there is something wrong in your gamemode.
Reply


Messages In This Thread
iZCMD + Dialog = Unkown Command? - by Cepillado - 29.12.2015, 23:45
Re: iZCMD + Dialog = Unkown Command? - by saffierr - 30.12.2015, 02:30
Re: iZCMD + Dialog = Unkown Command? - by Tamy - 30.12.2015, 05:11
Respuesta: Re: iZCMD + Dialog = Unkown Command? - by Cepillado - 30.12.2015, 06:17
Re: iZCMD + Dialog = Unkown Command? - by Karan007 - 30.12.2015, 06:50
Re: iZCMD + Dialog = Unkown Command? - by iKarim - 30.12.2015, 06:56
Respuesta: iZCMD + Dialog = Unkown Command? - by Cepillado - 30.12.2015, 07:41
Re: iZCMD + Dialog = Unkown Command? - by ProDude - 30.12.2015, 07:57
Re: iZCMD + Dialog = Unkown Command? - by Karan007 - 30.12.2015, 08:39
Respuesta: Re: iZCMD + Dialog = Unkown Command? - by Cepillado - 30.12.2015, 08:45

Forum Jump:


Users browsing this thread: 1 Guest(s)