24.02.2018, 10:25
Hello everyone
I've got following code:
The question is - How correctly use format and strcat because of "listeners" variable, please? Thanks in advance for a help
I've got following code:
PHP Code:
new radiolist[500]; //I've got about 16 radios, but it's not necessary to show all lines of my code
strcat(radiolist, "Stanice\tPosluchačů\n");
strcat(radiolist, "Vypnout rбdio\n");
strcat(radiolist, "Evropa 2\t%i\n", listeners[0]);
strcat(radiolist, "Rбdio Express\t%i\n", listeners[1]);
strcat(radiolist, "Dance Rбdio\t%i", listeners[2]);
ShowPlayerDialogEx(playerid, D_RADIO, DIALOG_STYLE_TABLIST_HEADERS, "Rбdio", radiolist, "Zvolit", "Zavřнt");