Jump to content
  • 0

Question

Posted

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

7 answers to this question

Recommended Posts

  • 0
Posted

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);
        }
    }

  • 0
Posted

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.

Guest
This topic is now closed to further replies.


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..