Thread: [PI TUT] Money Pocket (Money pouch rip off)

Results 1 to 8 of 8
  1. #1 [PI TUT] Money Pocket (Money pouch rip off) 
    Registered Member Farage's Avatar
    Join Date
    Jan 2017
    Posts
    252
    Thanks given
    24
    Thanks received
    22
    Rep Power
    0
    Removed
    Have a nice day!
    Иди в пизду!
    Bonne journée!
    Einen schönen Tag noch!
    Hezký den!
    祝你今天愉快!
    Reply With Quote  
     

  2. #2  
    Software Developer

    Tyrant's Avatar
    Join Date
    Jul 2013
    Age
    24
    Posts
    1,562
    Thanks given
    678
    Thanks received
    423
    Rep Power
    1060
    Why would you make the moneyPouch static? does everyone shares the same money pouch?
    Reply With Quote  
     

  3. Thankful users:


  4. #3  
    Registered Member Farage's Avatar
    Join Date
    Jan 2017
    Posts
    252
    Thanks given
    24
    Thanks received
    22
    Rep Power
    0
    Quote Originally Posted by Tyrant View Post
    Why would you make the moneyPouch static? does everyone shares the same money pouch?
    We all START OFF with 0, and it wouldnt be shared to everyone because its saved to your personal player save
    Have a nice day!
    Иди в пизду!
    Bonne journée!
    Einen schönen Tag noch!
    Hezký den!
    祝你今天愉快!
    Reply With Quote  
     

  5. #4  
    Extreme Donator


    Join Date
    Oct 2010
    Posts
    2,853
    Thanks given
    1,213
    Thanks received
    1,622
    Rep Power
    5000
    Quote Originally Posted by S C A P E View Post
    We all START OFF with 0, and it wouldnt be shared to everyone because its saved to your personal player save
    This makes no sense at all. By having it static, your moneyPocket will also be my moneyPocket.

    If you were to deposit 100m, why should I be allowed to withdraw it? It's not my money lol.
    [Today 01:29 AM] RSTrials: Nice 0.97 Win/Loss Ratio luke. That's pretty bad.
    [Today 01:30 AM] Luke132: Ok u fucking moron i forgot i could influence misc.random
    Reply With Quote  
     

  6. #5  
    Respected Member


    Kris's Avatar
    Join Date
    Jun 2016
    Age
    26
    Posts
    3,638
    Thanks given
    820
    Thanks received
    2,642
    Rep Power
    5000
    Quote Originally Posted by Professor Oak View Post
    This makes no sense at all. By having it static, your moneyPocket will also be my moneyPocket.

    If you were to deposit 100m, why should I be allowed to withdraw it? It's not my money lol.
    He obviously doesn't understand what the static modifier does to a variable >.>
    Attached image
    Reply With Quote  
     

  7. #6  
    Registered Member Farage's Avatar
    Join Date
    Jan 2017
    Posts
    252
    Thanks given
    24
    Thanks received
    22
    Rep Power
    0
    Ok lol i never saw this proplem when testing it but i can change it

    Just changed this on my own source and i got this error, so i cant rlly have it not be static
    Cannot make a static reference to the non-static field Player.moneyPocket

    How would i fix this then?
    Have a nice day!
    Иди в пизду!
    Bonne journée!
    Einen schönen Tag noch!
    Hezký den!
    祝你今天愉快!
    Reply With Quote  
     

  8. #7  
    Registered Member

    Join Date
    Nov 2010
    Posts
    1,528
    Thanks given
    1,017
    Thanks received
    348
    Rep Power
    240
    I think it would already be 0, if you search in Player.java for "public int" (probably the first instance) below it there is a huge list of random crap (on most PI) and on a new line you just add "moneyPocket,"
    Reply With Quote  
     

  9. #8  
    Registered Member Farage's Avatar
    Join Date
    Jan 2017
    Posts
    252
    Thanks given
    24
    Thanks received
    22
    Rep Power
    0
    Nah im just gonna scrap the idea
    Have a nice day!
    Иди в пизду!
    Bonne journée!
    Einen schönen Tag noch!
    Hezký den!
    祝你今天愉快!
    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. Replies: 6
    Last Post: 06-19-2016, 10:24 PM
  2. PI Xp counter and money pouch
    By Real Slim in forum Help
    Replies: 3
    Last Post: 11-08-2015, 12:17 PM
  3. [PI] need help with money orb
    By Ponochio in forum Help
    Replies: 2
    Last Post: 12-19-2011, 12:57 PM
  4. [PI] Lag Fixes, Good Money [PI]
    By Slawth Baws in forum Buying
    Replies: 19
    Last Post: 12-01-2011, 04:47 PM
  5. Replies: 6
    Last Post: 06-27-2011, 11:00 PM
Tags for this Thread

View Tag Cloud

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •