Jump to content
  • 0

Register Button


addx20

Question

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

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

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

Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock