Anderson Fabris Posted July 1, 2019 at 03:50 AM Share Posted July 1, 2019 at 03:50 AM (edited) Buenas Comunidade, Novamente. Gostaria de pedir a ajuda de vocês nesse código, ele está quebrado, alguém conseguiria me auxiliar na forma correta que ela deve ser escrita? Segue o Código: Spoiler // Sistema especial de ranking da batalha campal std::auto_ptr<SQLMsg> pFindSQL(DBManager::instance().DirectQuery( "SELECT memberName, memberEmpire, memberPoints, " "FIND_IN_SET (memberPoints, (SELECT GROUP_CONCAT(memberPoints ORDER BY memberPoints DESC) " "FROM (%s) AS rank " "FROM %s WHERE memberName = '%s'", szQuery, szQuery, ch->GetName() )); Também estou com o seguinte problema referente a guerra: Spoiler SYSERR: Jun 29 08:34:25 :: DirectQuery: AsyncSQL::DirectQuery : mysql_query error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near Edited July 1, 2019 at 03:51 AM by Anderson Fabris Link to comment
PsyRullez Posted July 1, 2019 at 03:38 PM Share Posted July 1, 2019 at 03:38 PM Posta ai o core do ch1 sff Link to comment
[Admin] tierrilopes Posted July 1, 2019 at 07:14 PM Share Posted July 1, 2019 at 07:14 PM Coloca o objectivo e estrutura da tabela sff Assim como o valor que queres receber em return Link to comment
Anderson Fabris Posted July 1, 2019 at 07:22 PM Author Share Posted July 1, 2019 at 07:22 PM 3 horas atrás, PsyRullez disse: Posta ai o core do ch1 sff Spoiler SYSERR: Jun 29 08:34:25 :: DirectQuery: AsyncSQL::DirectQuery : mysql_query error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'rank FROM player.combat_zone_ranking_weekly WHERE memberName = 'RelampagoNeg'' at line 1 query: SELECT memberName, memberEmpire, memberPoints, FIND_IN_SET (memberPoints, (SELECT GROUP_CONCAT(memberPoints ORDER BY memberPoints DESC) FROM (player.combat_zone_ranking_weekly) AS rank FROM player.combat_zone_ranking_weekly WHERE memberName = 'RelampagoNeg' 7 minutos atrás, tierrilopes disse: Coloca o objectivo e estrutura da tabela sff Assim como o valor que queres receber em return Por favor, tem como você ser mais detalhado? Link to comment
GODSPEED Posted July 1, 2019 at 08:21 PM Share Posted July 1, 2019 at 08:21 PM 57 minutos atrás, Anderson Fabris disse: Ocultar conteúdo SYSERR: Jun 29 08:34:25 :: DirectQuery: AsyncSQL::DirectQuery : mysql_query error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'rank FROM player.combat_zone_ranking_weekly WHERE memberName = 'RelampagoNeg'' at line 1 query: SELECT memberName, memberEmpire, memberPoints, FIND_IN_SET (memberPoints, (SELECT GROUP_CONCAT(memberPoints ORDER BY memberPoints DESC) FROM (player.combat_zone_ranking_weekly) AS rank FROM player.combat_zone_ranking_weekly WHERE memberName = 'RelampagoNeg' Por favor, tem como você ser mais detalhado? se eu não estiver errado, ele quer as colunas que a tabela tem, e que tipo de valores tem cada coluna, também o objetivo desta querry Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now