Ich habe ein menü aber ich muss eine Include datei machen aber ich weiß nicht wie kann mir einer helfen?
new Menu:gMenu0[256];
new Menu:gMenue0[256];
new Menu:gMenu1[256];
new Menu:gMenue1[256];
new Menu:gMenu2[256];
new Menu:gMenue2[256];
new Menu:gMenu3[256];
new Menu:gMenue3[256];
new Menu:gMenu4[256];
AddStaticPickup(1273,2,2498.187255,-1644.023803,13.782609);//Pickup Id 0;
AddStaticPickup(1273,2,2469.697265,-1646.909667,13.518225);//Pickup Id 1;
AddStaticPickup(1273,2,2512.602783,-1651.261352,13.961275);//Pickup Id 2;
AddStaticPickup(1273,2,2523.863769,-1658.857543,15.493547);//Pickup Id 3;
AddStaticPickup(1273,2,2409.049560,-1673.654785,13.601841);//Pickup Id 4;
gMenu0[255] = CreateMenu(Mname, 2, 50, 200, 41, 30);
AddMenuItem(gMenu0[255],0,Info);
AddMenuItem(gMenu0[255],0,Enter);
AddMenuItem(gMenu0[255],0,Buy);
AddMenuItem(gMenu0[255],0,Rent);
AddMenuItem(gMenu0[255],0,Sell);
AddMenuItem(gMenu0[255],0,Lock);
gMenue0[255] = CreateMenu(Mname,1,50,200,50,25);
AddMenuItem(gMenue0[255],0,EatFood);
AddMenuItem(gMenue0[255],0,Exercise);
AddMenuItem(gMenue0[255],0,Exit);
gMenu1[255] = CreateMenu(Mname, 2, 50, 200, 41, 30);
AddMenuItem(gMenu1[255],0,Info);
AddMenuItem(gMenu1[255],0,Enter);
AddMenuItem(gMenu1[255],0,Buy);
AddMenuItem(gMenu1[255],0,Rent);
AddMenuItem(gMenu1[255],0,Sell);
AddMenuItem(gMenu1[255],0,Lock);
gMenue1[255] = CreateMenu(Mname,1,50,200,50,25);
AddMenuItem(gMenue1[255],0,EatFood);
AddMenuItem(gMenue1[255],0,Exercise);
AddMenuItem(gMenue1[255],0,Exit);
gMenu2[255] = CreateMenu(Mname, 2, 50, 200, 41, 30);
if ( pickupid == 0 ){
ShowMenuForPlayer(gMenu0[255],playerid);
TogglePlayerControllable(playerid,0);}
if ( pickupid == 1 ){
ShowMenuForPlayer(gMenu1[255],playerid);
TogglePlayerControllable(playerid,0);}
if ( pickupid == 2 ){
ShowMenuForPlayer(gMenu2[255],playerid);
TogglePlayerControllable(playerid,0);}
if ( pickupid == 3 ){
ShowMenuForPlayer(gMenu3[255],playerid);
TogglePlayerControllable(playerid,0);}
if ( pickupid == 4 ){
ShowMenuForPlayer(gMenu4[255],playerid);
TogglePlayerControllable(playerid,0);}
new Menu:Current = GetPlayerMenu(playerid);
if (Current == gMenu0[255]) {
switch(row) {
case 0: {
DestroyCurrentMenu(playerid);
OnInfo(playerid,0);
OnInfo(playerid,0);
DestroyCurrentMenu(playerid);
TogglePlayerControllable(playerid,1);}
case 1: {
DestroyCurrentMenu(playerid);
TogglePlayerControllable(playerid,1);
if (OnEnter(playerid,0)==1){
DestroyCurrentMenu(playerid);
ShowMenuForPlayer(gMenue0[255],playerid);
SetPlayerInterior(playerid,1);
SetPlayerPos(playerid,223.043991,1289.259888,1082.199951); }}
case 2: {
DestroyCurrentMenu(playerid);
TogglePlayerControllable(playerid,1);
if (OnBuy(playerid,0)==1){
ShowMenuForPlayer(gMenue0[255],playerid);
SetPlayerInterior(playerid,1);
SetPlayerPos(playerid,223.043991,1289.259888,1082.199951); }}
case 3: {
DestroyCurrentMenu(playerid);
TogglePlayerControllable(playerid,1);
if (OnRent(playerid,0)==1){
ShowMenuForPlayer(gMenue0[255],playerid);
SetPlayerInterior(playerid,1);
SetPlayerPos(playerid,223.043991,1289.259888,1082.199951); }}
case 4: {