23.05.2012, 06:44
Quote:
You can't have variables as cases in a switch statement. You should save the location of the pickups in a variable and loop through it.
|
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid) //don't know why you would use a command to enter pickups
{
switch(pickupid)
{
case arrowpickup[1]:
{
//do stuff
}
case arrowpickup[2]:
{
//do stuff
}
}
}