Postado Janeiro 27, 2014 11 anos Gente to voltando a hospedar um ot e tem muitas coisas novas que eu desconheço, tenho um problema que é o seguinte eu to motando um com sistema de reset por Banco de dados (db), e nao por storage gostaria de um codigo que aparece o nome, level e os resets. Desde de ja agradecido.
Postado Janeiro 27, 2014 11 anos Qual é o sistema de reset que você está usando ? Se for link de outro fórum, me mande por private-mail. 愛"A alma permanece em suas criações" 平(Não dou suporte por mensagem privada.)
Postado Janeiro 28, 2014 11 anos Bem, o motivo do double-post é que eu já resolvi o problema através desse script : Vá até talkactions > scripts > online.lua, apague tudo e cole isso : function onSay(cid, words, param, channel) local strings, i, position, added, showGamemasters = {""}, 1, 1, false, getBooleanFromString(getConfigValue('displayGamemastersWithOnlineCommand')) for _, pid in ipairs(getPlayersOnline()) do if(added) then if(i > (position * 7)) then strings[position] = strings[position] .. "," position = position + 1 strings[position] = "" else strings[position] = i == 1 and "" or strings[position] .. ", " end end added = false if((showGamemasters or getPlayerCustomFlagValue(cid, PLAYERCUSTOMFLAG_GAMEMASTERPRIVILEGES) or not getPlayerCustomFlagValue(pid, PLAYERCUSTOMFLAG_GAMEMASTERPRIVILEGES)) and (not isPlayerGhost(pid) or getPlayerGhostAccess(cid) >= getPlayerGhostAccess(pid))) then strings[position] = strings[position] .. getCreatureName(pid) .. " [" .. getPlayerLevel(pid) .. "] [Resets =" .. getPlayerReset(pid) .. "]" i = i + 1 added = true end end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, (i - 1) .. " player" .. (i > 1 and "s" or "") .. " online:") for i, str in ipairs(strings) do if(str:sub(str:len()) ~= ",") then str = str .. "." end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, str) end return true end 愛"A alma permanece em suas criações" 平(Não dou suporte por mensagem privada.)
Postado Janeiro 28, 2014 11 anos Autor acontece o seguinte : [13:2:23.999] [Error - TalkAction Interface] [13:2:24.000] data/talkactions/scripts/online.lua:onSay [13:2:24.000] Description: [13:2:24.001] data/talkactions/scripts/online.lua:16: attempt to call global 'ge tPlayerReset' (a nil value) [13:2:24.001] stack traceback: [13:2:24.002] data/talkactions/scripts/online.lua:16: in function <data/talkac tions/scripts/online.lua:1> ------------- Edição ----------- Alguem mais pode me ajudar, esperando resposta ainda . Editado Janeiro 31, 2014 11 anos por DinhoNee (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.