Postado Fevereiro 8, 2015 10 anos Olá galera, alguém pode me ajudar por favor? Um script está causando erro após eu executar o dsitro, o que pode ser? Script: local skillMsgs = { [SKILL_FIST] = "You advanced in first fighting ["..getPlayerSkill(cid, SKILL_FIST).."].", [SKILL_CLUB] = "You advanced in club fighting ["..getPlayerSkill(cid, SKILL_CLUB).."].", [SKILL_SWORD] = "You advanced in sword fighting ["..getPlayerSkill(cid, SKILL_SWORD).."].", [SKILL_AXE] = "You advanced in axe fighting ["..getPlayerSkill(cid, SKILL_AXE).."].", [SKILL_DISTANCE] = "You advanced in distance fighting ["..getPlayerSkill(cid, SKILL_DISTANCE).."].", [SKILL_SHIELD] = "You advanced in shielding ["..getPlayerSkill(cid, SKILL_SHIELD).."].", [SKILL_FISHING] = "You advanced in fishing ["..getPlayerSkill(cid, SKILL_FISHING).."].", [SKILL__MAGLEVEL] = "You advanced in magic level ["..getPlayerMagLevel(cid).."]." } function onAdvance(cid, skill, oldlevel, newlevel) if(skillMsgs[skill]) then doCreatureSay(cid, skillMsgs[skill], TALKTYPE_MONSTER) end return true end Obrigado pela atenção, no aguardo.
Postado Fevereiro 8, 2015 10 anos Solução function onAdvance(cid, skill, oldlevel, newlevel) local skillMsgs = { [SKILL_FIST] = "You advanced in first fighting ["..getPlayerSkill(cid, SKILL_FIST).."].", [SKILL_CLUB] = "You advanced in club fighting ["..getPlayerSkill(cid, SKILL_CLUB).."].", [SKILL_SWORD] = "You advanced in sword fighting ["..getPlayerSkill(cid, SKILL_SWORD).."].", [SKILL_AXE] = "You advanced in axe fighting ["..getPlayerSkill(cid, SKILL_AXE).."].", [SKILL_DISTANCE] = "You advanced in distance fighting ["..getPlayerSkill(cid, SKILL_DISTANCE).."].", [SKILL_SHIELD] = "You advanced in shielding ["..getPlayerSkill(cid, SKILL_SHIELD).."].", [SKILL_FISHING] = "You advanced in fishing ["..getPlayerSkill(cid, SKILL_FISHING).."].", [SKILL__MAGLEVEL] = "You advanced in magic level ["..getPlayerMagLevel(cid).."]." } if(skillMsgs[skill]) then doCreatureSay(cid, skillMsgs[skill], TALKTYPE_MONSTER) end return true end
Postado Fevereiro 8, 2015 10 anos Autor Muito obrigado, problema resolvido. EDIT: Só não entendi o porque que aparece um ponto branco como BroadCast no meio da tela, quando o script lança a mensagem DoCreatureSay junto.
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.