Stellow
C++/C#/PHP/LUA
update player_skills set value = 15 where skillid = 1 and (select players.id from players where players.name = 'gm old' limit 1)
know how to make it work? I had my players_skills erased, now I will have to give everyone it manually.
I tried to make a talkaction
but it did not work either
know how to make it work? I had my players_skills erased, now I will have to give everyone it manually.
I tried to make a talkaction
function onSay(cid, words, param, channel)
if(param == '') then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command requires param.")
return true
end
local t = string.explode(param, ",")
print(t[1])
print(t[2])
print(t[3])
db.executeQuery("UPDATE `player_skills` SET `value` = " .. (tonumber(t[3])) .. " WHERE `player_id` = " .. (tonumber(t[2])) .. " and `skillid` = " .. (tonumber(t[2])) .. ";")
return true
end
but it did not work either