Guest User

Untitled

a guest
May 10th, 2012
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. /**
  2. * Friends list.
  3. */
  4. rs = Database.getInstance().sqlQuery(
  5. "SELECT id,friend,slot FROM bank WHERE accountId="
  6. + accountId);
  7. while (rs.next()) {
  8. int slot = rs.getInt("slot");
  9. String friend = rs.getString("friend");
  10. if (slot >= 0 && slot < Bank.SIZE) {
  11. if (friend != "")
  12. this.getFriendsList().friends.add(NameUtils
  13. .nameToLong(friend));
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment