01.12.2014, 19:19
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:
Error:
This is what i've got defined at the top:
I don't know if it was meant to be MAX_PLAYERS or not, would be great if someone could help me, thank you
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;
}
Code:
C:\Users\BLACK\Desktop\Test\filterscripts\DeathMatch.pwn(133) : error 033: array must be indexed (variable "Deathmatchon")
Quote:
|
new Deathmatchon[MAX_PLAYERS]; |

