String on DIALOG_STYLE_LIST
#2

Код:
if (strcmp("/kviesti", cmdtext, true, 8) == 0)
	{
		new string[125];
		format(string, sizeof(string), "Taksi: %s", taksiConnected);
		format(string, sizeof(string), "Mechanikai: %s", mechanikaiConnected);
		format(string, sizeof(string), "Policija: %s", policijaConnected);
		format(string, sizeof(string), "Narko: %s", narkoConnected);
		format(string, sizeof(string), "Medikai: %s", medikaiConnected);
		
		ShowPlayerDialog(playerid, 202, DIALOG_STYLE_LIST, string , "Pasirinkti", "Atsaukti");
		return 1;
	}
Your cell size for string was too small. Also, The way you wrote it, it doesn't work like that. You added an extra arguement in ShowPlayerDialog function. The previous words which were in your dialog is supposed to be written in formatted function itself.


Edit: Ok ok my bad xD
Reply


Messages In This Thread
String on DIALOG_STYLE_LIST - by LI0LIKAS - 22.01.2018, 16:51
Re: String on DIALOG_STYLE_LIST - by Ritzy2K - 22.01.2018, 16:56
Re: String on DIALOG_STYLE_LIST - by LI0LIKAS - 22.01.2018, 17:11
Re: String on DIALOG_STYLE_LIST - by Ritzy2K - 22.01.2018, 17:13
Re: String on DIALOG_STYLE_LIST - by Stev - 22.01.2018, 17:32
Re: String on DIALOG_STYLE_LIST - by LI0LIKAS - 22.01.2018, 17:36
Re: String on DIALOG_STYLE_LIST - by Kane - 22.01.2018, 17:42
Re: String on DIALOG_STYLE_LIST - by denNorske - 22.01.2018, 17:52
Re: String on DIALOG_STYLE_LIST - by LI0LIKAS - 22.01.2018, 18:08
Re: String on DIALOG_STYLE_LIST - by denNorske - 22.01.2018, 20:30

Forum Jump:


Users browsing this thread: 5 Guest(s)