Hall of Fame Settings.

Issue #475 resolved
lStickerz created an issue

How can i change this Query SELECT users.look, users.username, users.id, users_settings.hof_points FROM users_settings INNER JOIN users ON users_settings.user_id = users.id WHERE hof_points > 0 ORDER BY hof_points DESC, users.id ASC LIMIT 10');

To a query that make hall of fame base on currency type.. and if rank 2 above don't show the user on the hotelview

i have try alot of different ways...

Comments (7)

  1. lStickerz reporter

    Emulator_settings table * Also on users_settings theres a table called hof_points you could use to give users points for them could appear on the hotelview

  2. kek

    Set POINTS_TYPE_HERE to your points

    You can remove the AND users.rank < 5

    SELECT users.id,username,look,amount AS hof_points FROM users 
    INNER JOIN users_currency ON users.id=users_currency.user_id 
    WHERE users_currency.type = POINTS_TYPE_HERE AND users.rank < 5 ORDER BY users_currency.amount DESC LIMIT 10
    
  3. lStickerz reporter

    SELECT users.id,username,look,amount AS hof_points FROM users INNER JOIN users_currency ON users.id=users_currency.user_id WHERE users_currency.type = POINTS_TYPE_HERE AND users.rank < 5 ORDER BY users_currency.amount DESC LIMIT 10 < How To put it base on currency

  4. Log in to comment