Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 10th, 2012  |  syntax: None  |  size: 0.41 KB  |  hits: 17  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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.                         }