Thread: help?
View Single Post
Old 09-18-2003, 02:28 PM   #13 (permalink)
Nagash
Forum Novice
 
Join Date: Mar 2003
Posts: 246
Send a message via ICQ to Nagash
Default

I already did that before, but thought I was wrong cause I was getting the following error:

[code:1]
Error: Scripts\Custom\NewMine\customPlayerMobile.cs: CS0506: <line 19, column1> īServer.Mobile.ArmorRating.getī because it is not marked virtual, abstract or override
[/code:1]
and this is my code:
[code:1]
using System;
using System.IO;
using System.Collections;
using Server;
using Server.Misc;
using Server.Items;
using Server.Gumps;
using Server.Multis;
using Server.Engines.Help;
using Server.Network;
using Server.Mobiles;

namespace Server.Mobiles
{
public class customPlayerMobile : PlayerMobile
{
public override double ArmorRating
{
get { return 99; }
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int)2 );//version
}

public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}
[/code:1]

Can anyone help me with this?
Nagash is offline   Reply With Quote