list BBQ_menu = ["ON","OFF","Cheeseburger","Hotdog","Kebab","Chicken Burger","Hamburger","Steak Sandwhich"];
integer Channel = -9889;
default
{
state_entry()
{
llListen(Channel,"",NULL_KEY,""
;}
touch(integer total_number)
{
llDialog(llDetectedKey(0),"Would you Like to turn the BBQ on?",BBQ_menu,Channel);
}
listen(integer channel, string name, key id, string message)
{
if(message == "Cheeseburger"
;{
llGiveInventory(id, llGetInventoryName(INVENTORY_OBJECT,0));
llResetScript();
}
if(message == "Hotdog"
;{
llGiveInventory(id, llGetInventoryName(INVENTORY_OBJECT,2));
llResetScript();
}
}
}
It does not take On and OFF actions and it omits your llResetScript()s, which are not needed.