private server award system promlem :(

10/29/2013 18:09 nckrnckr#1
my biggest problem

[Only registered and activated users can see links. Click Here To Register...]
10/29/2013 18:22 Requi#2
try it with:
this.Ship.uri += Convert.ToUInt32(1);
10/29/2013 18:30 NoCheatImPGM#3
Or
This.Ship.Uri = This.Ship.Uri + 1;

Edit :

Tested and my code works.
10/29/2013 18:39 nckrnckr#4
Quote:
Originally Posted by NoCheatImPGM View Post
Or
This.Ship.Uri = This.Ship.Uri + 1;
dont work :(

Quote:
Originally Posted by Requi View Post
try it with:
this.Ship.uri += Convert.ToUInt32(1);
dont work :(

still the same problem
10/29/2013 18:43 th0rex#5
Then your code modifies uri somewhere else.

Quote:
Originally Posted by NoCheatImPGM View Post
Or
This.Ship.Uri = This.Ship.Uri + 1;
Same as This.Ship.Uri += 1;

Quote:
Originally Posted by Requi View Post
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.
10/29/2013 18:47 asterixxx1995#6
try this
this.Ship.uri += 1;
this.Send("0|LM|ST|URI|1|");
UpdateShip();

public void UpdateShip()
{
this.Send("RDY|I|" + this.userId + "|" + this.Ship.Name + "|" + this.Ship.Id + "|" + this.Ship.speed + "|" + this.Ship.shield + "|" + this.Ship.maxShield + "|" + this.Ship.HP + "|" + this.Ship.maxHP + "|4000|4000|" + this.Ship.x + "|" + this.Ship.y + "|" + this.mapId + "|" + this.Ship.factionId + "|1|80000|8500|5|5|0|0|1|0|" + this.Ship.uri + "|10000|21||4|1|0");

}
10/29/2013 18:49 'Heaven.#7
Code:
this.Ship.uri = (Convert.ToInt32(this.Ship.uri) + 1).ToString();
should work as well.
10/29/2013 18:54 th0rex#8
Quote:
Originally Posted by Waka Toa View Post
Code:
this.Ship.uri = (Convert.ToInt32(this.Ship.uri) + 1).ToString();
should work as well.
Won't work if uri is an int/uint which it mostlikely is.

Edit: Omfg he declared an variable to store numbers as string. GG.
10/29/2013 18:57 NoCheatImPGM#9
It works.
10/29/2013 19:04 nckrnckr#10
Quote:
Originally Posted by Waka Toa View Post
Code:
this.Ship.uri = (Convert.ToInt32(this.Ship.uri) + 1).ToString();
should work as well.
working !!! yeah :D

EDİT: but re-started the emulator
and error :(

[Only registered and activated users can see links. Click Here To Register...]

Problem fixed (NocheatImPGM (thanks))

#closerequest#
10/29/2013 19:20 epixvkad#11
Poor you.Also censor your IP from the image...
10/29/2013 19:35 'Heaven.#12
Quote:
Originally Posted by omitma View Post
Omfg he declared an variable to store numbers as string. GG.
Yes, in Azure is everything as string stored i think...

so the += will add the "1" as string
10/29/2013 19:51 th0rex#13
Nah not everything lol. Most things are Integers. Atleast in my version, can't look in original as i dont have it anymore.
10/29/2013 20:16 Nectix#14
#closed