1. So, for a bit of time I was writing a program. Theres one problem with it though, my data tables never worked. So I deleted them out of the script for a temp time. I need your help finding out how to use it.

    EXAMPLE:
    So say i did /warn "Player" "Reason"
    How would I add that to a data table. AS in something like:
    Player Warned: -Player that received the warn.
    Warning Admin: --The admin that warned the player
    Reason: --The reason for the warn
    Warns: --How many warns the player has

    EXAMPLE:
    And then say I wanted to read that data.
    So persay "TestUser" has 2 warns
    Then a admin does /warn TestUser Bla
    He will have 3 warnings and that equals a temp ban
    How would I read it so I can temp ban the player?

    EXAMPLE:
    How would I also delete warns from the data base?

    If I can get this working I can have my script working in no time.

    Language : Lua

    Thanks for your help in advance :D
     
    Last edited by a moderator: Jul 31, 2015
  2. Save your data to a text file, then call it when you need it.
    I guess the same thing applies to MySQL
     
  3. Almost every plugin uses data tables. You should get a basic understanding by looking through some of them.
    Also when posting for help without example code, tell us what language you want to get help in.
     
  4. Look @ my Salvager mod, there's a Dictionary<string, string> I'm using and saving in there, should give you what you need.