Help with on dialog response
#8

Sorry, need some more help on something else, i have been trying to make it stop having mutiple death matches on at the same time so i've made it so if there is a death match on, you can't make one, but i keep getting this error:
pawn Code:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == DeathMatch)
    {
    if(Deathmatchon == true) return SendClientMessage(playerid, -1, "There is already a death match on!");
    ShowPlayerDialog(playerid, Deathmatch, DIALOG_STYLE_LIST, "DeathMatch list", "LS carpark DM\nLV warehouse DM\nSF tennis courts" , "Yes", "No"); // Add more if you want!
    }
    return 1;
}
Error:
Code:
C:\Users\BLACK\Desktop\Test\filterscripts\DeathMatch.pwn(133) : error 033: array must be indexed (variable "Deathmatchon")
This is what i've got defined at the top:

Quote:

new Deathmatchon[MAX_PLAYERS];

I don't know if it was meant to be MAX_PLAYERS or not, would be great if someone could help me, thank you
Reply


Messages In This Thread
Help with on dialog response - by LeXuZ - 01.12.2014, 18:07
Re: Help with on dialog response - by Runn3R - 01.12.2014, 18:16
Re: Help with on dialog response - by LeXuZ - 01.12.2014, 18:28
Re: Help with on dialog response - by Runn3R - 01.12.2014, 18:31
Re: Help with on dialog response - by LeXuZ - 01.12.2014, 18:32
Re: Help with on dialog response - by Runn3R - 01.12.2014, 18:39
Re: Help with on dialog response - by LeXuZ - 01.12.2014, 18:43
Re: Help with on dialog response - by LeXuZ - 01.12.2014, 19:19
Re: Help with on dialog response - by Runn3R - 01.12.2014, 19:24
Re: Help with on dialog response - by LeXuZ - 01.12.2014, 19:30

Forum Jump:


Users browsing this thread: 1 Guest(s)