How Can I use switch(menu) in OnPlayerSelectedMenuRow?
#1

Код:
public OnPlayerSelectedMenuRow(playerid, row)
{
	new Menu:_menu = GetPlayerMenu(playerid);
	switch(_menu) {
	    case PickupMenu[STORE_WEAPON]:{

	    }

	    case PickupMenu[STORE_SEXSHOP]:{


	    }
	}
        return 1;
}
Код:
must be a constant expression; assumed zero
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)