String duplicating inside of dialog.
#3

Why don't you format a string and use strcat after formatting it? Like this example:
PHP Code:
CMD:interiorlist(playerid)
{
    if(!
IsPlayerAdmin(playerid))
        return 
0;
    new 
sub_str[100],
        
principal_str[250];
    foreach(new 
It_Interior)
    {
        
format(sub_strsizeof(sub_str), "ID: %i » %s\n"iBizInterior[i][i_Name]);
        
strcat(principal_strsub_str);
    }
    
Dialog_Show(playeridNOTHINGDIALOG_STYLE_MSGBOX"All custom interiors"principal_str"Ok""");
    return 
1;

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)