Code:
CMD:oldbiz(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 1338)
{
new count, string[128], str[5200], name[24], filepath[32];
for(new i=0; i<MAX_BUSINESSES; i++)
{
if(count < 20)
{
format(name, sizeof(name), "%s", BizInfo[i][pBizKey]);
format(filepath, sizeof(filepath), "users/%s.ini", name);
if(strcmp("Nobody", name, true) && strcmp("None", name, true))
{
if(!fexist(filepath))
{
format(string, sizeof(string), "{FF0000}BID Inactive: {FFFFFF}%d Player: %s\n",i,name);
strcat(str, string);
count ++;
}
}
}
}
ShowPlayerDialog(playerid, DIALOG_SHOW_INFO, DIALOG_STYLE_MSGBOX, "{FF0000}Inactive Businesses", str, "Ok", "Cancel");
}
return 1;
}