mysql question increase on block break

Discussion in 'Plugin Development' started by Glacksy, Aug 30, 2011.

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


    i have a simple question

    when a player break a block, how do you make it write to mysql and increase at same time?
    (could be spesific blocks too)
  2. Offline


    int integer = 0;
    "insert your update-query here";
    Or what do you need :D
  3. Offline


    Get the data (int) from MySQL, then add one, then do an UPDATE query.
  4. Offline


    hmm, im currently at the "insert to mysql" part, is it possible to get an example for breaking of ironore will give 1+ at the database? like some sort of counter for blocks broken ;D still a bit confused
Thread Status:
Not open for further replies.

Share This Page