CODE |
- Error: Scripts\Custom Made Scripts\SkillGumpTime.cs: CS1501: (line 26, column 17) No overload for method 'SkillGump' takes '1' arguments |
CODE |
using System; using System.Net; using Server; using Server.Accounting; using Server.Gumps; using Server.Items; using Server.Mobiles; using Server.Network; using Server.Misc; namespace Server.Misc { public class SkillGumpTime { public static void Initialize() { EventSink.Login += new LoginEventHandler( EventSink_Login ); } private static void EventSink_Login( LoginEventArgs args ) { Mobile m = args.Mobile; Account acc = m.Account as Account; if ( acc.TotalGameTime > TimeSpan.FromHours( 40.0 ) ) { m.SendGump( new SkillGump( m ) ); } } } } |
CODE |
m.SendGump( new SkillGump( m, MissingSomthingHere ) ); |
CODE |
m.SendGump( new SkillGump() ); |
CODE |
- Error: Scripts\Custom Made Scripts\SkillGumpTime.cs: CS1501: (line 26, column 17) No overload for method 'SkillGump' takes '0' arguments |
CODE |
using System; using System.Net; using Server; using Server.Accounting; using Server.Gumps; using Server.Items; using Server.Mobiles; using Server.Network; using Server.Misc; namespace Server.Misc { public class SkillGumpTime { public static void Initialize() { EventSink.Login += new LoginEventHandler( EventSink_Login ); } private static void EventSink_Login( LoginEventArgs args ) { Mobile m = args.Mobile; Account acc = m.Account as Account; if ( acc.TotalGameTime > TimeSpan.FromHours( 40.0 ) ) { m.SendGump( new SkillGump() ); } } } } |