..:D&G:.. Posted June 13, 2015 Posted June 13, 2015 Hello, I am trying to make a report system that saved the reports in mysql, but I keep getting syntax error. I don't really know what the syntax for dbQuery is... local qh = dbQuery(mysql, "INSERT INTO reports (Date, Type, From, Content) values ('"..getFormatDate().."', '"..typ.."', '"..getPlayerName(client).."', '"..text.."');") local result = dbPoll(qh, -1 ) MTA:Rust Pre-Alpha Build v.0.3: https://forum.mtasa.com/viewtopic.php?f=114&t=97848 2Pac: ''Only God can judge me!''
Walid Posted June 13, 2015 Posted June 13, 2015 use dbExec(). Do not yield your back to your enemy, might feel something strange in your ass. Two things are infinite the universe and human stupidity and i'm not sure about the universe. UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators
..:D&G:.. Posted June 13, 2015 Author Posted June 13, 2015 Fixed it, thanks a lot MTA:Rust Pre-Alpha Build v.0.3: https://forum.mtasa.com/viewtopic.php?f=114&t=97848 2Pac: ''Only God can judge me!''
Walid Posted June 13, 2015 Posted June 13, 2015 np. Do not yield your back to your enemy, might feel something strange in your ass. Two things are infinite the universe and human stupidity and i'm not sure about the universe. UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now