Skip to content

Error compile

Featured Replies

delete

Somewhere in the code u should have getBuyStoreCurrency defined.

Post the code..

  • Author

delete

You have a simple error, you try to put a long into a int.

 

Define _playerAdena as a long type (in PrivateStoreListBuy) :

 

- private int _playerAdena;
+ private long _playerAdena;

 

-----

 

Or modify getBuyStoreCurrency() method to be an int type (in L2PcInstance).

 

- public synchronized long getBuyStoreCurrency()
+ public synchronized int getBuyStoreCurrency()

 

-----

 

It's fully depends of the chronicle I think, if from basic you got an int type, an int type is enough.

 

DON'T MODIFY BOTH CODES, YOU WILL HAVE EXACTLY SAME ERROR ELSE.

  • Author

delete

+ import com.l2jserver.Config;
  import com.l2jserver.L2DatabaseFactory;

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.