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");
}
error 033: array must be indexed (variable "-unknown-")
sizeof(string) should be sizeof(stringad), but can you show where you declare PlayerInfo?
|
pAdvert[128]
if(PlayerInfo[i][pAdvert] != "None")
Dude I already did that but still gives the error
PHP Code:
|
if(PlayerInfo[pAdvert] != "None") // Error line |
if(!strcmp(PlayerInfo[pAdvert], "None", false, 128))