Lucian

Member
I have to add a Token variable to PlayerMobile.cs for my premium system ,
However I tried to add the variable like that in PlayerMobile.cs :
private int m_Token;
[CommandProperty(AccessLevel.Administrator)]
public int Token
{
get { return m_Token; }
set { m_Token = value; }
}
Than I deserialize and serialize them like that :
Deserialize :
case 30:
{
m_Token = reader.ReadInt();
goto case 29;
}
Serialize :
base.Serialize(writer);

writer.Write(29); // version
writer.Write(m_Token);

Than I start my ServUO and got 0 errors, but when I restart my server , It says An Error was encountered .
When I Press Y , It deletes my main character and it's happening all time.

Sorry for bad english , I hope you can understand me .
Help please.
ai.hizliresim.com_2rmqGN.png
 

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back