president vankk
Web Developer & AuraOT Owner
- Joined
- Jul 10, 2009
- Messages
- 5,719
- Solutions
- 9
- Reaction score
- 339
LUA:
function onSay(cid, words, param, channel)
local v = string.explode(param, ',')
local player, points = getPlayerByNameWildcard(v[1]), tonumber(v[2])
return player and points and db.executeQuery("UPDATE `accounts` SET `premium_points` = `premium_points` + " .. points .. " WHERE `id` = " .. getPlayerAccount(player) .. ";") or doPlayerSendCancel(cid, "Sorry, not possible.")
end
the script is not adding the premium points
:s