Give the whole WorldLoader class and the addFriend method.
|
|
when i use this it dont let me login and gives random return codesCode:for (int i = 0; i < 200; i++) { Long friend = is.readLong(); if (friend != null) { player.getFriends().addFriend(friend); }
and here is my saving code
Code:for (int i = 0; i < 200; i++) { Long friend = player.getFriends().getFriends(i); if (friend == null) { os.writeLong(-1); } else { os.writeLong(friend); } }




Give the whole WorldLoader class and the addFriend method.

it wouldnt be != null![]()

This happens whenever you add anything to the loading and saving code in GenericWorldLoader. That's why I've switched my specific one to MySQL. (Not working on it atm though)




| « is it possible to change the line: | Pk point system. » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |