Kamras
Member
Hello,
I'm attempting to work out the details for Level 3 serbo system however I found one hiccup which doesn't add up..
My console is reporting this error
I found that it wasn't properly spaced so I re typed all the code with the proper spacing as the brackets didn't initially match all the way but that did not resolve the problem and still provided the above error.
Here is the snippet of code from the above error
If anyone can point me in the right direction to show me what's wrong I would truly appreciate that.
The error is referring to this line in the code
I'm attempting to work out the details for Level 3 serbo system however I found one hiccup which doesn't add up..
My console is reporting this error
Code:
Scripts: Compiling C# scripts...Failed with: 1 errors, 0 warnings
Errors:
+ Mobiles/PlayerMobile.cs:
CS1014: Line 142: A get or set accessor expected
CS1513: Line 141: } expected
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
I found that it wasn't properly spaced so I re typed all the code with the proper spacing as the brackets didn't initially match all the way but that did not resolve the problem and still provided the above error.
Here is the snippet of code from the above error
If anyone can point me in the right direction to show me what's wrong I would truly appreciate that.
Code:
public class PlayerMobile : Mobile, IHonorTarget
{
//Level System
private int m_Level;
private int m_MaxLevel;
private int m_Exp;
private int m_ToLevel;
public int m_kxp;
private int m_SKPoints;
private int m_StatPoints;
[CommandProperty(AccessLevel.GameMaster)]
public int Level
{ get { return m_Level; } set { m_Level = value; InvalidateProperties(); } }
[CommandProperty(AccessLevel.GameMaster)]
public int MaxLevel
{ get { return m_MaxLevel; } set { m_MaxLevel = value; InvalidateProperties(); } }
[CommandProperty(AccessLevel.GameMaster)]
public int Exp
{
get { return m_Exp = LevelCore.TExp(this); }
set { m_Exp = value; InvalidateProperties(); }
}
[CommandProperty(AccessLevel.GameMaster)]
public int ToLevel
{ get { return m_ToLevel; } set { m_ToLevel = value; InvalidateProperties(); } }
public int kxp
{ get { return m_kxp; } set { m_kxp = value; InvalidateProperties(); }
[CommandProperty(AccessLevel.GameMaster)]
public int SKPoints
{
get { return m_SKPoints; }
set { m_SKPoints = value; }
}
[CommandProperty(AccessLevel.GameMaster)]
public int StatPoints
{
get { return m_StatPoints; }
set { m_StatPoints = value; }
}
//End Level System
The error is referring to this line in the code
Code:
[CommandProperty(AccessLevel.GameMaster)]
public int SKPoints
{
get { return m_SKPoints; }
set { m_SKPoints = value; }
}
Last edited: