I try to edit premium market mod and make it that when you buy premium antimatter is sent to admin. But it doesn't work.
If I do like this it adds AM to user that bought it.
$USER["atm"] += $cost;
But when I edit it to this:
$GLOBALS['DATABASE']->query("UPDATE ".USERS." SET `atm` = `atm` + ".$cost." WHERE `id` = '1';");
It doesn't do anything. Pls. help I tried many ways but I can not understand why..
If I do like this it adds AM to user that bought it.
$USER["atm"] += $cost;
But when I edit it to this:
$GLOBALS['DATABASE']->query("UPDATE ".USERS." SET `atm` = `atm` + ".$cost." WHERE `id` = '1';");
It doesn't do anything. Pls. help I tried many ways but I can not understand why..