Thread: bank pins [pi]

Results 1 to 6 of 6
  1. #1 bank pins [pi] 
    Banned
    Join Date
    May 2011
    Posts
    205
    Thanks given
    39
    Thanks received
    3
    Rep Power
    0
    i keep getting an error from playersave and playerassistant when i add the bankpins from this tutorial
    http://www.rune-server.org/runescape...-pin-base.html

    [SPOIL][/SPOIL]
    can someone tell me how to fix?
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Mar 2011
    Posts
    4,062
    Thanks given
    194
    Thanks received
    689
    Rep Power
    0
    bankPin is defined as a String not an int
    Reply With Quote  
     

  3. #3  
    Banned
    Join Date
    May 2011
    Posts
    205
    Thanks given
    39
    Thanks received
    3
    Rep Power
    0
    Quote Originally Posted by relex lawl View Post
    bankPin is defined as a String not an int
    still getting errors. anyway you could teamview me and fix it?
    Reply With Quote  
     

  4. #4  
    Banned

    Join Date
    Mar 2011
    Posts
    4,062
    Thanks given
    194
    Thanks received
    689
    Rep Power
    0
    you gotta save it as a String not an int...
    Reply With Quote  
     

  5. #5  
    Banned
    Join Date
    May 2011
    Posts
    205
    Thanks given
    39
    Thanks received
    3
    Rep Power
    0
    Quote Originally Posted by relex lawl View Post
    you gotta save it as a String not an int...
    how exactly would i do that because im not used to working with player and playersave
    Reply With Quote  
     

  6. #6  
    GANGNAM STYLE!

    Ohad's Avatar
    Join Date
    Aug 2011
    Posts
    3,179
    Thanks given
    152
    Thanks received
    352
    Rep Power
    1671
    Quote Originally Posted by imrecovery View Post
    Code:
    	if (token.equals("bankPin")) {
    		p.bankPin = Integer.parseInt(token2);
    	} else if (token.equals("setPin")) {
    		p.setPin = Boolean.parseBoolean(token2);
    	}
    Replace With

    Code:
    	 if (token.equals("bankPin")) {
    		p.bankPin = token2;
    	 }
    	 if (token.equals("setPin")) {
    		p.setPin = Boolean.parseBoolean(token2);
    	}


    Code:
    	characterfile.write("bankPin = ", 0, 10);
    	characterfile.write(Integer.toString(p.bankPin), 0, Integer.toString(p.bankPin).length());
    	characterfile.newLine();
    	characterfile.write("setPin = ", 0, 9);
    	characterfile.write(Boolean.toString(p.setPin), 0, Boolean.toString(p.setPin).length());
    	characterfile.newLine();
    Replace with

    Code:
    			characterfile.write("setPin = ", 0, 9);
    			characterfile.write(Boolean.toString(p.setPin), 0, Boolean.toString(p.setPin).length());
    			characterfile.newLine();
    			characterfile.write("bankPin = ", 0, 10);
    			characterfile.write(p.bankPin, 0, p.bankPin.length());
    			characterfile.newLine();
    do this...
    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. Bank Pins - Nearly perfect
    By Abyssal Noob in forum Show-off
    Replies: 12
    Last Post: 07-06-2010, 10:58 AM
  2. Bank PINs
    By Palidino in forum Show-off
    Replies: 30
    Last Post: 10-03-2009, 03:51 PM
  3. Bank Pins in RSPS - Pointless?
    By Vegeta in forum RS2 Server
    Replies: 4
    Last Post: 12-01-2008, 09:46 PM
  4. Bank Pins Lul
    By Z in forum RS 503+ Client & Server
    Replies: 5
    Last Post: 08-30-2008, 05:56 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •