well, I'm adding more than 2b support to my money pouch, although i'm having a long issue.


here is what i'm trying to convert:

c.getItems().addItem(995, c.MoneyCash+cashAmount-2147483647);

and

c.getItems().addItem(995, c.MoneyCash);

to make it support a long as it currently is an int, int.

cmd error when compiling:

Code:
source\server\model\players\packets\Commands.java:131: error: method addItem in
class ItemAssistant cannot be applied to given types;
                        c.getItems().addItem(995, c.MoneyCash);
                                    ^
  required: int,int
  found: int,long
  reason: actual argument long cannot be converted to int by method invocation c
onversion
source\server\model\players\packets\ItemClick3.java:94: error: method addItem in
 class ItemAssistant cannot be applied to given types;
                                c.getItems().addItem(995, c.MoneyCash+cashAmount
-2147483647);
                                            ^
  required: int,int
  found: int,long
  reason: actual argument long cannot be converted to int by method invocation c
onversion
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors
Press any key to continue . . .