Go to [Only registered and activated users can see links. Click Here To Register...] or [Only registered and activated users can see links. Click Here To Register...], actually go to your routers settings page.
It means structures cannot have a default paramater...Quote:
dude i got 3 erorrs saying : Default parameters specifiers are not permitted and when i click on it it points on a = -.- why is that?
Third error:Quote:
bool CreateThread(bool bRun = true, uint next_uid = 0)
Quote:
public SubClass(Game.Entity E, byte _Type = 7) { Owner = E; Type = _Type; }
i got the same error here is the code:Quote:
Ooh crap I totally misread the error.
the error is referring to...
byte _Type = 7
and
uint next_uid = 0
If you posted the whole code it would be far more clearer where you're issue is but w/e. Where you are using it in your code doesn't allow for default params (the whole = x)
TryQuote:
i got the same error here is the code:
public class SubClass : Writer, Interfaces.IPacket
{
public const byte
SwitchSubClass = 0,
ActivateSubClass = 1,
ShowSubClasses = 7,
MartialPromoted = 5,
LearnSubClass = 4;
Game.Entity Owner = null;
byte[] Buffer;
byte Type;
public SubClass(Game.Entity E, byte _Type = 7) { Owner = E; Type = _Type; }
public void Deserialize(byte[] buffer)
{
this.Buffer = buffer;
}
public class SubClass : Writer, Interfaces.IPacket
{
public const byte
SwitchSubClass = 0,
ActivateSubClass = 1,
ShowSubClasses = 7,
MartialPromoted = 5,
LearnSubClass = 4;
Game.Entity Owner = null;
byte[] Buffer;
byte Type = 7;
public SubClass(Game.Entity E, byte _Type) { Owner = E; Type = _Type; }
public void Deserialize(byte[] buffer)
{
this.Buffer = buffer;
}