MySQL | Error | Reading loops

Discussion in 'Plugin Development' started by Xyplo, May 17, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    Xyplo

    So I'm trying to have a reading loop from MySQL.

    What it should do is call the loop every so many seconds/ticks which will get the players coins (xoins) from MySQL. It should also get the players rank so that I can set their xoins and rank so the layout of their name goes something like this...

    || 5 >>> Owner >>> nGx_IEpiiKZz_x ||

    How would I got around doing this? I've had no luck for the past hour so I've come here for help.

    -Thanks haydon.

    bump

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 8, 2016
  2. Offline

    rfsantos1996

    playerName (varchar(17)), rank (varchar(26)), xoins (int(10)) -- this is the table that you should have in mind

    With a enum, you can easily get the rank and work with it.

    Create a class with all of that and load from mysql on prelogin/login, (Player, Rank and xoins) then update/insert/delete when necessary

    I don't really know what you want (the purpose of this thread, but well, i'm here, and this is a nice way to keep information for the player)
     
Thread Status:
Not open for further replies.

Share This Page