Code:
function getPlayerPowerSkill(cid)
if isPlayer(cid) == TRUE then
local SKILL_POWER = 449933
local skill = getPlayerStorageValue(cid, SKILL_POWER)
end
return skill
end
function doPlayerAddPowerSkill(cid, level)
if isPlayer(cid) == TRUE then
local SKILL_POWER = 449933
local skill = getPlayerStorageValue(cid, SKILL_POWER)
skill = skill + level
setPlayerStorageValue(cid, SKILL_POWER, skill)
end
return TRUE
end
Error on IMG:
Help-me please:
Code:
function onSay(cid, words, param, channel)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have "..getPlayerPowerSkill(cid).." points of power skill.")
return TRUE
end