04.02.2019, 12:36
Hi!
I update zeex compiler to 3.10.9.
And get warning "warning 239: literal array/string passed to a non-const parameter" on ShowPlayerDialog.
How to fix it?
I update zeex compiler to 3.10.9.
And get warning "warning 239: literal array/string passed to a non-const parameter" on ShowPlayerDialog.
PHP код:
public: AdminList(playerid)
{
new rows, fields, adminname[24], str[92], message[1024], colorid, adminlvl;
strcat(message, ""white"Nickname\t"white"Level\t"white"Status\n");
cache_get_row_count(rows);
cache_get_field_count(fields);
while(rows--)
{
cache_get_value_index(rows, 0, adminname, 24);
cache_get_value_index_int(rows, 1, adminlvl);
cache_get_value_index_int(rows, 2, colorid);
format(str, sizeof(str), "{%s}%s\t"white"%d\t%s\n", chatcolor[colorid], adminname, adminlvl, (Online(adminname)) ? (on) : (off));
strcat(message, str);
}
ShowPlayerDialog(playerid, D_ADMINLIST, DIALOG_STYLE_TABLIST_HEADERS, ""q"Администраторы", message, "Ok", "");
return 1;
}