Thread: [PI] 2147M Go automaticly to money pouch?

Results 1 to 4 of 4
  1. #1 [PI] 2147M Go automaticly to money pouch? 
    Registered Member
    Join Date
    May 2012
    Posts
    85
    Thanks given
    72
    Thanks received
    5
    Rep Power
    0
    I've seen some servers, if you stake for example, 2147m and win, the cash go automaticly to your money bag, then it dont dissappear like now, or if you will bank 2147m and already have 2147m, then it go automaticly to money bag again, how i do it?
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Feb 2009
    Posts
    399
    Thanks given
    9
    Thanks received
    20
    Rep Power
    29
    You could always just do multiple stacks of money/items when they get to maxed. so when one is maxed it creates a new stack in the next available slot in your inventory or bank. Thats how i got around that issue.
    If you don't stand for something you will fall for anything.

    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    May 2012
    Posts
    85
    Thanks given
    72
    Thanks received
    5
    Rep Power
    0
    Quote Originally Posted by X Rebel X View Post
    You could always just do multiple stacks of money/items when they get to maxed. so when one is maxed it creates a new stack in the next available slot in your inventory or bank. Thats how i got around that issue.
    How i can do it?
    Reply With Quote  
     

  4. #4  
    Banned

    Join Date
    Jan 2009
    Age
    31
    Posts
    2,661
    Thanks given
    66
    Thanks received
    207
    Rep Power
    0
    The hell? You not suppose to allow the trade, duel, banking, etc.. to even be performed if there is any chance that item A + item B amounts exceed the max int value.


    A strategy I used a lot was the below (By setting it to a long value it'll add properly and then you can check if it's greater than Integer.MAX_VALUE.

    Code:
    			if ((long)amounts[availableSlot] + amount > Integer.MAX_VALUE) 
    			{
    				return false;
    			}
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Money Pouch - 99%
    By TheLife in forum Tutorials
    Replies: 142
    Last Post: 12-21-2015, 11:47 AM
  2. Replies: 15
    Last Post: 06-10-2012, 01:32 AM
  3. Money Pouch help please
    By `Erik in forum Help
    Replies: 3
    Last Post: 06-07-2012, 03:32 AM
  4. [pi] money pouch help please
    By Preject Retribution in forum Help
    Replies: 4
    Last Post: 02-11-2012, 03:54 AM
  5. Money Pouch
    By coffee 708 in forum Help
    Replies: 4
    Last Post: 02-05-2012, 09:19 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •