Hey,
Ich scripte zum ersten mal Mysql ohne Module. Ich habs mir in Wiki angeschaut ich bekomme irgendwie ein Error.
Lua
local result = dbExec(handler, "UPDATE ? SET ? = '?' WHERE ?",tablename,feldname,var,bedingung)
MySQL_SetString("players", "Geld", getPlayerMoney(player), "Username LIKE '" ..pname.."'")
Error
Code
[14:43:46] WARNING: [Race]\racesystem\mysql\mysql_start.lua:41: dbExec failed; (
1064) You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near ''players' SET 'Geld
' = '97250' WHERE 'Username LIKE \'Soner\''' at line 1