01.07.2016, 15:25
PHP Code:
if(listitem == 0)
{
new stringad[100];
foreach(Player, i)
{
if(PlayerInfo[pAdvert] != "None") // Error line
{
format(stringad, sizeof(string), "%s | Contact: %i\n",PlayerInfo[pAdvert], PlayerInfo[pPnumber]);
}
else
{
format(stringad, sizeof(string), "No Advertisement Yet");
}
}
ShowPlayerDialog(playerid, DIALOG_ADLIST, DIALOG_STYLE_LIST, "Advertisement List", stringad, "Select", "Cancel");
}
PHP Code:
error 033: array must be indexed (variable "-unknown-")