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.
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.
Code:
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;
}