I have been working for hours trying to get cheats in my game. When I play I get no errors but it doesn't work. The cheat code however does not show in the babblebox. That gave me the idea that there is something wrong with the sql statment. here is the code :
elseif ($safecontent == "give me money" || $safecontent == "give me money"){ $update = doquery("UPDATE {{table}} SET gold='.$userrow[gold]. + 100'", "users"); }
i also tried:
elseif ($safecontent == "give me money" || $safecontent == "give me money"){
doquery("UPDATE {{table}} SET gold='gold + 100'", "users"); }