Umm?

07/07/2009 19:31 ~*NewDuuDe*~#1
Well was going a bit back and forth with this but ended getting nowhere.
So thing is, I'm trying to make an item command which allows you only to get up to +9 items instead of +12. As I want that to be VIP/Gm command.
It's probably pretty simple, but then again, I'm not very good :P
07/07/2009 21:21 _Emme_#2
Quote:
byte Plus = Cmd[3] // Not sure if its cmd 3
if (Plus > 9)
Plus = 9;

Copy+paste, works for your source
07/07/2009 21:28 ~*NewDuuDe*~#3
Rewrote it. Works like a charm.
Thanks bro.
07/07/2009 21:38 _Emme_#4
#closed
07/08/2009 00:48 kinshi88#5
Sorry Emme, I just have to post this.

Code:
Plus = Math.Min(9, Cmd[3]); // Not sure if its Cmd[3] either =P
Way simpler and cooler =P