String on DIALOG_STYLE_LIST
#1

Hey,

Just saying, that I am a beginner at scripting, so I still don't know many things.

I already made the player count system when a player joins, it increases the count of his job workers. How to make the count of players in each job appear in the DIALOG_STYLE_LIST?

I tried to do like that, but I get warning that number of arguments doesn't match definition and it doesn't work.

Код:
	if (strcmp("/kviesti", cmdtext, true, 8) == 0)
	{
		new string[5];
		format(string, sizeof(string), "%s", taksiConnected);
		format(string, sizeof(string), "%s", mechanikaiConnected);
		format(string, sizeof(string), "%s", policijaConnected);
		format(string, sizeof(string), "%s", narkoConnected);
		format(string, sizeof(string), "%s", medikaiConnected);
		
		ShowPlayerDialog(playerid, 202, DIALOG_STYLE_LIST,"Kviesti tarnyba", "Taksi [%s]\nMedikai [%s]\nPolicija [%s]\nMechanikai [%s]\nNarkotiku prekeiviai [%s]", string, "Pasirinkti", "Atsaukti");
		return 1;
	}
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: 2 Guest(s)