Hey Community 😉 ich stehe derzeit vor einen problem undzwar sagt er mir : > Fehlermeldung:
NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
bei RoomUser.MoveTo(Int32 pX, Int32 pY, Boolean pOverride) in C:\Users\Crysas\Desktop\Sources2013\Projekt\RoomUser.cs:Zeile 403.
code:
internal void MoveTo(int pX, int pY, bool pOverride)
{
if (this.GetRoom().GetGameMap().SquareHasUsers(pX, pY ) || pOverride)
{
this.Unidle();
if (this.TeleportEnabled)
{
this.GetRoom().SendMessage (this.GetRoom().GetRoomItemHandler().UpdateUserOnRoller (this, new Point(pX, pY), 0, this.GetRoom().GetGameMap().SqAbsoluteHeight(this.GoalX, this.GoalY)));
this.GetRoom().GetRoomUserManager().UpdateUserStatus(this, false);
}
else
{
this.IsWalking = true;
this.GoalX = pX;
this.GoalY = pY;
this.AllowOverride = true;
this.throwBallAtGoal = false;
}
}
}
weiß jemand rat?
Ja gleich mehrere
lG
Thomas
[Hinweis] Wie poste ich richtig? 1.1 und 1.1.1
- performance is a feature -
Microsoft MVP - @Website - @AzureStuttgart - github.com/BenjaminAbt - Sustainable Code