Lordfireot 16 Postado Março 22, 2013 Share Postado Março 22, 2013 Ola galera eu quero 1 ajuda de voçes aki deu 1 erro no meu servidor kkkkkkkkkkkkkkkkkkk de lei nao consegui arruma [Error - dalkaction interface] data/dalkaction/script/skill.lua:onSay Description: data/dalkaction/script/skill.lua:29: attempt to compare nunber with nil stack traceback data/dalkaction/script/skill.lua:29: in function <data/talkaction/scripts/skill.lua:1> esse e meu erro agora o meu skill.lua function onSay(cid, words, param, channel) if(param == '') then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.") return true end local t = string.explode(param, ",") if(not t[2]) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Not enough params.") return true end local pid = getPlayerByNameWildcard(t[1]) if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. t[1] .. " not found.") return true end t[2] = t[2]:lower() local skill = SKILL_IDS[t[2]] if(not skill) then local tmp = t[2]:sub(1, 1) if(tmp == 'l' or tmp == 'e') then skill = SKILL__LEVEL elseif(tmp == 'm') then skill = SKILL__MAGLEVEL else skill = tonumber(t[2]) if(not skill or skill < SKILL_FIRST or SKILL > SKILL__LAST) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Such skill does not exists.") return true end end end local amount = tonumber(t[3]) if(not amount or amount == 0) then amount = 1 end doPlayerAddSkill(pid, skill, amount, true) return true end pf alguem me ajuda Link para o comentário https://xtibia.com/forum/topic/210412-erro-talkations-script/ Compartilhar em outros sites More sharing options...
0 Roksas 846 Postado Março 22, 2013 Share Postado Março 22, 2013 (editado) Área incorreta, movido. ~~ Tenta ae function onSay(cid, words, param, channel) if(param == '') then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.") return true end local t = string.explode(param, ",") if(not t[2]) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Not enough params.") return true end local pid = getPlayerByNameWildcard(t[1]) if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. t[1] .. " not found.") return true end t[2] = t[2]:lower() local skill = SKILL_IDS[t[2]] if(not skill) then local tmp = t[2]:sub(1, 1) if(tmp == 'l' or tmp == 'e') then skill = SKILL__LEVEL elseif(tmp == 'm') then skill = SKILL__MAGLEVEL else skill = tonumber(t[2]) if not skill then if skill < SKILL_FIRST or skill > SKILL__LAST then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Such skill does not exists.") return true end end end end local amount = tonumber(t[3]) if(not amount or amount == 0) then amount = 1 end doPlayerAddSkill(pid, skill, amount, true) return true end Editado Março 22, 2013 por Roksas Link para o comentário https://xtibia.com/forum/topic/210412-erro-talkations-script/#findComment-1491502 Compartilhar em outros sites More sharing options...
0 Lordfireot 16 Postado Março 22, 2013 Autor Share Postado Março 22, 2013 Nossa manw parabens cara eu te amooooooooo REP++++++++++++++++++ Link para o comentário https://xtibia.com/forum/topic/210412-erro-talkations-script/#findComment-1491517 Compartilhar em outros sites More sharing options...
0 SkyLigh 453 Postado Março 22, 2013 Share Postado Março 22, 2013 Duvida sanada reportado Link para o comentário https://xtibia.com/forum/topic/210412-erro-talkations-script/#findComment-1491519 Compartilhar em outros sites More sharing options...
0 Roksas 846 Postado Março 22, 2013 Share Postado Março 22, 2013 Sky, não precisa falar que reportou cara, já tinha dito isso, mas obrigado mesmo assim, bjs. Tópico movido. Link para o comentário https://xtibia.com/forum/topic/210412-erro-talkations-script/#findComment-1491520 Compartilhar em outros sites More sharing options...
Pergunta
Lordfireot 16
Ola galera eu quero 1 ajuda de voçes aki deu 1 erro no meu servidor kkkkkkkkkkkkkkkkkkk de lei nao consegui arruma
[Error - dalkaction interface]
data/dalkaction/script/skill.lua:onSay
Description:
data/dalkaction/script/skill.lua:29: attempt to compare nunber with nil stack traceback
data/dalkaction/script/skill.lua:29: in function <data/talkaction/scripts/skill.lua:1>
esse e meu erro agora o meu skill.lua
function onSay(cid, words, param, channel)
if(param == '') then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.")
return true
end
local t = string.explode(param, ",")
if(not t[2]) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Not enough params.")
return true
end
local pid = getPlayerByNameWildcard(t[1])
if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. t[1] .. " not found.")
return true
end
t[2] = t[2]:lower()
local skill = SKILL_IDS[t[2]]
if(not skill) then
local tmp = t[2]:sub(1, 1)
if(tmp == 'l' or tmp == 'e') then
skill = SKILL__LEVEL
elseif(tmp == 'm') then
skill = SKILL__MAGLEVEL
else
skill = tonumber(t[2])
if(not skill or skill < SKILL_FIRST or SKILL > SKILL__LAST) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Such skill does not exists.")
return true
end
end
end
local amount = tonumber(t[3])
if(not amount or amount == 0) then
amount = 1
end
doPlayerAddSkill(pid, skill, amount, true)
return true
end
pf alguem me ajuda
Link para o comentário
https://xtibia.com/forum/topic/210412-erro-talkations-script/Compartilhar em outros sites
4 respostass a esta questão
Posts Recomendados