-Aldebaran-
New Member
\[code\]String weapon = "pistol . <1/10>";Result:int clip = 1;int ammo = 1;\[/code\]format of the string = (WEAPON) . <(CLIP)/(AMMO)>
And I need the Clip and Ammo values. So how I can extract those two values of the String.I can split it by "/" by it will still face: "gun <1" and "10>"
Thanks in advance
And I need the Clip and Ammo values. So how I can extract those two values of the String.I can split it by "/" by it will still face: "gun <1" and "10>"
Thanks in advance