Problem 5375 Console :(

06/24/2011 01:54 YeuryXD#1
Sorry to bother so much but I'm mario mistakes this is the next I shut the server and the console and hit me when I write the @ exit the console does nothing

[Only registered and activated users can see links. Click Here To Register...]
:handsdown:
06/24/2011 03:58 { Angelius }#2
MonsterInformation.Drop(Entity Killer) <<< thats the problem the killer is null you should pass only the objects that does not == null other ways you'll get the same exception all the time ,

you can do something like the following in side that drop void .
if (Killer != null) { your drop shit goes here; }

and btw do some research about the(thread safe in C#)
06/24/2011 05:23 rockymiperro#3
this dont fix the problem i was try and dont work =( y make this its good?
if (Killer != null) killer.ConquerPoints += (20);
06/24/2011 06:50 YeuryXD#4
#region Cps Drop
if (Game.Entity.ChanceSuccess(10000000))
{
killer.ConquerPoints += 25;
killer.Owner.Send(new Network.GamePackets.Message("Felicidadeshaora consigues 25 Cps.", System.Drawing.Color.Yellow, 2005));
}
#endregion
06/24/2011 10:59 S/W#5
Tray his one

Quote:
if (Owner.Name.Contains("Guard"))
return;
#region CPs
if (Game.Entity.ChanceSuccess(6))
{
uint amount = Level;

if (Level > 10)
{
amount = (uint)(Level / 10);
amount += (uint)(amount + (amount * 2.687));
}

if (amount == 0)
return;

killer.ConquerPoints += amount;
killer.Owner.Send(new Network.GamePackets.Message("The monster has Give you " + amount + " cps.", System.Drawing.Color.Yellow, 2005));
}
#endregion
06/24/2011 14:31 alaa410#6
Quote:
Originally Posted by S/W View Post
Tray his one
where i can edit the commint

can any one help me to make this pls
06/24/2011 14:52 { Angelius }#7
Quote:
Originally Posted by rockymiperro View Post
this dont fix the problem i was try and dont work =( y make this its good?
if (Killer != null) killer.ConquerPoints += (20);
really ? you tried and it dident work ? well guess what you did it wrong ...

and btw null references doesent have to be any of the parameters that is passed to the void and if you take a look at the screen shot up there you'll see that it tells you exactly where the problem is and if you cant read/follow/fix such small problem please give up the privet servers shit until you learn at least the basics of C#.

and.... if (Killr != null) and if (Killer == null) return; is being used to avoid passing//processing any null references to the void (So you dont get any of those exceptions) and if the server that you are using was a well coded server you well never need to double check those null stuff :/
06/24/2011 18:50 rockymiperro#8
Quote:
Originally Posted by { Angelius } View Post
really ? you tried and it dident work ? well guess what you did it wrong ...

and btw null references doesent have to be any of the parameters that is passed to the void and if you take a look at the screen shot up there you'll see that it tells you exactly where the problem is and if you cant read/follow/fix such small problem please give up the privet servers shit until you learn at least the basics of C#.

and.... if (Killr != null) and if (Killer == null) return; is being used to avoid passing//processing any null references to the void (So you dont get any of those exceptions) and if the server that you are using was a well coded server you well never need to double check those null stuff :/
problem solved men you know how to fix this error of anysockets?

[Only registered and activated users can see links. Click Here To Register...]
06/24/2011 18:56 { Angelius }#9
Quote:
Originally Posted by rockymiperro View Post
problem solved men you know how to fix this error of anysockets?
No i dont cus it sounds like you dident read any of my replays on the topic .
06/24/2011 20:54 rockymiperro#10
i was read i said problem solved men really