ShowPlayerDialog - literal array/string passed to a non-const parameter
#1

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.

PHP код:
public: AdminList(playerid)
{
    new 
rowsfieldsadminname[24], str[92], message[1024], coloridadminlvl;
    
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(rows0adminname24);
        
cache_get_value_index_int(rows1adminlvl);
        
cache_get_value_index_int(rows2colorid);
        
format(strsizeof(str), "{%s}%s\t"white"%d\t%s\n"chatcolor[colorid], adminnameadminlvl, (Online(adminname)) ? (on) : (off));
        
strcat(messagestr);
    }
    
ShowPlayerDialog(playeridD_ADMINLISTDIALOG_STYLE_TABLIST_HEADERS""q"Администраторы"message"Ok""");
    return 
1;

How to fix it?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)