Postado Julho 7, 2015 9 anos Olá, Queria que minha new type fosse do 2 ate 1119 completas. Porque so vai ate a 400 e tem umas que não funcionam. Script: function onSay(cid, words, param, channel) if(param == '') then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command requires param.") return true end local t = string.explode(param, ",") t[1] = tonumber(t[1]) if(not t[1]) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command requires numeric param.") return true end local pid = cid if(t[2]) then pid = getPlayerByNameWildcard(t[2]) if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. t[2] .. " not found.") return true end end if(t[1] <= 1 or t[1] == 135 or (t[1] > 160 and t[1] < 192) or t[1] > 400) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Such outfit does not exist.") return true end local tmp = getCreatureOutfit(pid) tmp.lookType = t[1] doCreatureChangeOutfit(pid, tmp) return true end "O sucesso é uma consequência e não um objetivo. A persistência é o caminho do êxito".
Postado Julho 7, 2015 9 anos Solução Troca isso: if(t[1] <= 1 or t[1] == 135 or (t[1] > 160 and t[1] < 192) or t[1] > 400) then Por isso: if(t[1] <= 1 or t[1] == 135 or (t[1] > 160 and t[1] < 192) or t[1] > 1119) then
Postado Julho 7, 2015 9 anos Autor Eu tive da uma editada, mas tenha umas q n funfava. if(t[1] <= 1 or t[1] == 135 or (t[1] > 160 and t[1] > 1119) or t[1] > 1119) then "O sucesso é uma consequência e não um objetivo. A persistência é o caminho do êxito".
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.