Then your code modifies uri somewhere else.
Quote:
Originally Posted by NoCheatImPGM
Or
This.Ship.Uri = This.Ship.Uri + 1;
|
Same as This.Ship.Uri += 1;
Quote:
Originally Posted by Requi
try it with:
this.Ship.uri += Convert.ToUInt32(1);
|
Warum sollte man eine 1 (ist ja über 0, passt also eh in UInt) konventieren zu uint ? Ergibt für mich keinen Sinn. Außerdem könnte man auch <Variable> <Operator> <(NeuerTyp)Ausdruck/Zahl> , z.B. this.Ship.Uri += (UIint)1; schreiben (auch "Casten" genannt). Das wäre das selbe.