Ir para conteúdo

Featured Replies

  • Respostas 7
  • Visualizações 1.1k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • function onSay(cid, words, param, channel) if param == '' then local lista = db.getResult("SELECT `name` FROM `guilds`;") if(lista:getID() ~= -1) then local v = '' repeat v = v .. lista:getDataString(

Postado
function onSay(cid, words, param, channel)
if param == '' then
local lista = db.getResult("SELECT `name` FROM `guilds`;")
if(lista:getID() ~= -1) then
local v = ''
repeat
v = v .. lista:getDataString("name") .. "\n"
until not lista:next()
lista:free()
doShowTextDialog(cid, 2529, v)
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Não existem guilds no servidor.")
end
else
local id = getGuildId(param)
if id then
local lista = db.getResult("SELECT `name`, `rank_id` FROM `players` WHERE `rank_id` IN (SELECT `id` FROM `guild_ranks` WHERE `guild_id` = " .. id .. ");")
if(lista:getID() ~= -1) then
local v = ''
repeat
local rank = db.getResult("SELECT `name` FROM `guild_ranks` WHERE `id` = " .. lista:getDataInt("rank_id") .. " LIMIT 1;")
v = v .. lista:getDataString("name") .. " [" .. rank:getDataString("name") .. "]\n"
rank:free()
until not lista:next()
lista:free()
doShowTextDialog(cid, 2529, v)
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "No hay jugadores en este guild.")
end
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Está Guild não existe.")
end
end
return TRUE
end

precisor saber como esta a tag la na sua add base pra mim poder bota o script pra setar nela, mais o script é esse...

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.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo