Galera, não sei o que esta errado no seguinte codigo...
ele é pra ser uma talkaction.
------------------------------------------------------------
<talkaction words="!status" script="Islands/Status.lua"/>
------------------------------------------------------------
------------------------------------------------------------
function onSay(cid, words, param, channel)
pos = getPlayerPosition(cid)
p1 = getThingfromPos(pos)
Heal = getPlayerHealth(p1.uid)
Mana = getPlayerMana(p1.uid)
doPlayerSendTextMessage(cid, 22, "Health:" .. Heal .. "Mana:" .. Mana .. ".")
end
----------------------------------------------------------
QD eu executo o (!status) no server, ele acusa erra no (getPlayerHealth), diz que é um valor nulo, sempre usei ele e nunca deu nda de errado, não sei o que pode ser...
OBS: getPlayerMana funciona certinho.
já tentei tambem trocar de [Heal = getPlayerHealth(p1.uid)] para [Heal = getPlayerHealth(cid)] e dai nem a getPlayerMana(uid) funcionou...
meu OT eh o styller yourots - versão=0.3.5.2576 ---- OT 8.50
HELP PLZ...