Postado Abril 26, 2015 10 anos Você removeu o function onUse(cid) :v Era para colocar print(getPlayerGuildRank(cid)) abaixo dele, não no lugar dele. local newColor = {lookBody = 79, lookHead = 79, lookLegs = 79, lookFeet = 79} --Configure aqui a cor da roupa dos membros da guild. local pos = {x = 31427, y = 32417, z = 11} function onUse(cid) print(getPlayerGuildRank(cid)) if getPlayerGuildId(cid) > 0 then if getPlayerGuildRank(cid) == "leader" then for _, pid in pairs(getPlayersOnline()) do if getPlayerGuildId(pid) == getPlayerGuildId(cid) and pid ~= cid then newColor.lookType = getCreatureOutfit(pid).lookType doPlayerSendTextMessage(pid, 27, "Your guild leader ("..getCreatureName(cid)..") pulled you.") doTeleportThing(pid, pos) doSetCreatureOutfit(pid, newColor, -1) end end else doPlayerSendCancel(cid, "You aren't the guild leader.") end else doPlayerSendCancel(cid, "You don't have a guild.") end return true end não respondo pms solicitando suporte em programação/scripting
Postado Abril 27, 2015 10 anos Autor Não foi de novo rsrs, olha o erro, aparece quando eu clico na alavanca, quando dou reload não aparece nenhum erro. Lua Script Error: [Action Interface] data/actions/scripts/warzone/waramarelo.lua:onUse data/actions/scripts/warzone/waramarelo.lua:5: attempt to compare number with boolean stack traceback: [C]: in function '__lt' data/actions/scripts/warzone/waramarelo.lua:5: in function false up Editado Abril 26, 2015 10 anos por Lykkan (veja o histórico de edições)
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.