You should provide the whole script as this does not show how the gump is named --this shows error MoongateGump
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Text;
using Server;
using Server.Misc;
using Server.Items;
using Server.Mobiles;
using Server.Network;
using Server.Gumps;
using Server.Commands.Generic;
using Server.Commands;
namespace Server
{
public static class Moong
{
public static void Initialize()
{
CommandSystem.Register("Moon", AccessLevel.Administrator, new CommandEventHandler(Moon_OnCommand));
}
[Usage("Moon")]
[Description("Moon.")]
private static void Moon_OnCommand(CommandEventArgs e)
{
e.Mobile.SendGump(new MoongateGump(e));
}
}
}
I want to use "[Moon" this command, called moon gate is MoongateGUMP in the world.
Error: "Server.Items.MoongateGump" does not contain "1" parameter of the constructor.
I hope you can help me, brother!