hello, i am trying to connect to my MySQL Database and do some query when someone write something but it doesn't work. the plugin works without errors, it just doesn't do the query. can you take a look on my script, please?
Code:
#include <amxmodx>
#include <amxmisc>
#include <dbi>
public plugin_init() {
register_plugin("sqltest", "1.0", "kOoO")
register_clcmd("say", "sendSay", 0, "hovno")
}
public sendSay(){
new Sql:name
Sql:name = dbi_connect ( "localhost", "root", "", "pawntest")
dbi_query(name, "UPDATE table1 SET column1 = 1")
}
btw, i read somewhere that "dbi" is old version of sql. if so, where can i find some actual tutorial?