Skip to content

Register Button

Featured Replies

Hello! I have a problem i made an academy register button but when i am trying to REGISTER is done nothing! Everything is working perfect but i cannot press the Register Button! HTML is ok! for sure smt going wrong with the java code! Any suggestions?

Shot00001.jpg

Solved by addx20

Mate, not all people watching in displaye like this.

 

1497095771_kreativnost1.jpg

 

Increase brightness.

Did you made the handler for this button or this button is repeating the already existing action?

  • Author

When u press this button u register in academy list... somehow this button is dead!..

 

private static void registerAcademy(Clan clan, Player player, int itemId, long price)
    {
        Connection connection = null;
        PreparedStatement statement = null;
        try
        {
            connection = DatabaseFactory.getInstance().getConnection();
            statement = connection.prepareStatement("INSERT INTO character_academy (clanId,charId,itemId,price,time) values(?,?,?,?,?)");
            statement.setInt(1, clan.getClanId());
            statement.setInt(2, player.getObjectId());
            statement.setInt(3, itemId);
            statement.setLong(4, price);
            statement.setLong(5, System.currentTimeMillis() + Config.MAX_TIME_IN_ACADEMY);
            statement.execute();
            deleteFromAcdemyList(player);
            scheduledDeleteTask(clan);
        }
        catch (final Exception e)
        {
            e.printStackTrace();
        }
        finally
        {
            DbUtils.closeQuietly(connection, statement);
        }
    }

Because between Button and registerAcademy() method must be a handler what processing your request data. Check academy BBS recruting script for this action support.

 

This sources very bugged as i know.

  • Author
  • Solution

Thanks my friend! I found it! 

Topic Locked!

Reason Solved

Guest
This topic is now closed to further replies.

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.