Phr3d13
Sorceror
I can't get the MyStats gump to compile correctly. Here is the error:
and here is the snippet of code:
the error line is the red line
and i'm using the latest sa-project svn
Code:
Errors:
+ Customs/StatsGump.cs:
CS0117: Line 16: `Server.Commands.Properties' does not contain a definition for `Register'
Rich (BB code):
using System;
using System.Collections;
using Server.Network;
using Server.Mobiles;
using Server.Items;
using Server.Misc;
using Server.Commands;
namespace Server.Gumps
{
public class StatsGump : Gump
{
public static void Initialize()
{
CommandSystem.Prefix = "[";
Properties.Register();
Register( "mystats", AccessLevel.Player, new CommandEventHandler( MyStats_OnCommand ) );
}
public static void Register( string command, AccessLevel access, CommandEventHandler handler )
{
CommandSystem.Register(command, access, handler);
}
[Usage( "MyStats" )]
[Description( "Opens Stats Gump." )]
public static void MyStats_OnCommand( CommandEventArgs e )
{
Mobile from = e.Mobile;
from.CloseGump( typeof( StatsGump ) );
from.SendGump( new StatsGump( from ) );
}
and i'm using the latest sa-project svn