Ir para conteúdo

Featured Replies

Postado

O znote ta pedinho uma table players_online que eu não tenho em minha database nem sei adicionar, acho que eu um problema simples, alguém pode me ajudar ?

 

Who is online?

string(337) "SELECT `o`.`player_id` AS `id`, `p`.`name` as `name`, `p`.`level` as `level`, `p`.`vocation` as `vocation`, `g`.`name` as `gname` FROM `players_online` as `o` INNER JOIN `players` as `p` ON `o`.`player_id` = `p`.`id` LEFT JOIN `guild_membership` gm ON `o`.`player_id` = `gm`.`player_id` LEFT JOIN `guilds` g ON `gm`.`guild_id` = `g`.`id`" 
(query - SQL error
Type: select_multi (select multiple rows from database)

Table 'pkr.players_online' doesn't exist

Resolvido por Leandrowebmaster

Ir para solução
Postado
  • Solução

executa essa query em seu banco de dados

CREATE TABLE IF NOT EXISTS `pkr.players_online` (
  `player_id` int(11) NOT NULL DEFAULT '0',
  `id` int(11) NOT NULL DEFAULT '0',
  `p` int(11) NOT NULL DEFAULT '0',
  `g` int(11) NOT NULL DEFAULT '0',
  `guild_id` int(11) NOT NULL DEFAULT '0',
  `guilds` int(11) NOT NULL DEFAULT '0',
  `guild_membership` int(11) NOT NULL DEFAULT '0',
  `name` int(11) NOT NULL DEFAULT '0',
  `gname` int(11) NOT NULL DEFAULT '0',
  `level` int(11) NOT NULL DEFAULT '0',
  `vocation` int(11) NOT NULL DEFAULT '0',
  `players_online` int(11) NOT NULL DEFAULT '0',
  `gm` int(11) NOT NULL DEFAULT '0',
  `attributes` blob NOT NULL );

Editado por Leandrowebmaster (veja o histórico de edições)

<html>
          Evoluir
                </html>
 
Postado
  • Autor

Obrigado... mas você errou o certo séria:

CREATE TABLE IF NOT EXISTS players_online (
`player_id` int(11) NOT NULL DEFAULT '0',
`id` int(11) NOT NULL DEFAULT '0',
`p` int(11) NOT NULL DEFAULT '0',
`g` int(11) NOT NULL DEFAULT '0',
`guild_id` int(11) NOT NULL DEFAULT '0',
`guilds` int(11) NOT NULL DEFAULT '0',
`guild_membership` int(11) NOT NULL DEFAULT '0',
`name` int(11) NOT NULL DEFAULT '0',
`gname` int(11) NOT NULL DEFAULT '0',
`level` int(11) NOT NULL DEFAULT '0',
`vocation` int(11) NOT NULL DEFAULT '0',
`players_online` int(11) NOT NULL DEFAULT '0',
`gm` int(11) NOT NULL DEFAULT '0',
`attributes` blob NOT NULL );

Mano agora eu to precisando da guild_membership:

 

string(337) "SELECT `o`.`player_id` AS `id`, `p`.`name` as `name`, `p`.`level` as `level`, `p`.`vocation` as `vocation`, `g`.`name` as `gname` FROM `players_online` as `o` INNER JOIN `players` as `p` ON `o`.`player_id` = `p`.`id` LEFT JOIN `guild_membership` gm ON `o`.`player_id` = `gm`.`player_id` LEFT JOIN `guilds` g ON `gm`.`guild_id` = `g`.`id`" 

(query - SQL error
Type: select_multi (select multiple rows from database)

Table 'pkr.guild_membership' doesn't exist

Editado por GabrielSapient (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.

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