F e n r i r

Membro
  • Total de itens

    75
  • Registro em

  • Última visita

  • Days Won

    1

Reputação

2 Iniciante

Sobre F e n r i r

Informa??o do Perfil

  • Sexo:
    N?o informado
  1. provavelmente você deverá compatibilizar o seu executável com o sistema operacional do seu PC.
  2. vc precisa pegar a formula e tentar jogar números inteiros pra chegar no mesmo valor desejado. qual seria os valores e a formula a utilizar?
  3. estou tentando assim mas ainda tem alguma modificação que nao consigo criar :/ ACMD_FUNC(ranking) { nullpo_retr(-1, sd); if ( SQL_ERROR == Sql_Query(mmysql_handle, "SELECT `login`.`userid`, `global_reg_value`.`value` FROM `login` LEFT JOIN `global_reg_value` ON `login`.`account_id` = `global_reg_value`.`account_id` WHERE `global_reg_value`.`str` = '#ELOMOBA' AND `global_reg_value`.`value` > 0 ORDER BY `global_reg_value`.`value` DESC LIMIT 0,10") ) clif_displaymessage(fd, "MySQL Query Error. Please check your database."); else { clif_displaymessage(fd, "RANKING"); while ( SQL_SUCCESS == Sql_NextRow(mmysql_handle) ) { char *data; char userid[23]; int value; Sql_GetData(mmysql_handle, 0, &data, NULL); safestrncpy(userid, data, sizeof(name)); Sql_GetData(mmysql_handle, 1, &data, NULL); value = atoi(data); sprintf(atcmd_output, "name : %s | pontos : %d", userid, value); clif_displaymessage(fd, atcmd_output); } } Sql_FreeResult(mmysql_handle); } return 0; }
  4. Estou querendo aprender como criar um ranking, no caso uma consulta em sql no atcommand.c do emulador, sendo que será exibido como estes rankings em NPC que já utilizam. A intenção é para aprendizado, obrigado
  5. parabéns pelos sprites
  6. posta o NPC que fica mais fácil de identificar o erro.
  7. provavelmente ativando o mvpLOG vc pode fazer um sistema SQL de contagens dos monstros de acordo com o ID de cada.
  8. Estou com esse erro na compila??o infos.sln: 1>------ Rebuild All started: Project: infos, Configuration: Debug Win32 ------ 1> stdafx.cpp 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(25): error C2146: syntax error : missing ';' before identifier 'cin' 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(25): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(25): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(25): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(26): error C2146: syntax error : missing ';' before identifier 'cout' 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(26): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(26): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(26): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(27): error C2146: syntax error : missing ';' before identifier 'cerr' 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(27): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(27): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(27): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(28): error C2146: syntax error : missing ';' before identifier 'clog' 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(28): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(28): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(28): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(30): error C2146: syntax error : missing ';' before identifier 'wcin' 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(30): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(30): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(30): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(31): error C2146: syntax error : missing ';' before identifier 'wcout' 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(31): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(31): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(31): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(32): error C2146: syntax error : missing ';' before identifier 'wcerr' 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(32): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(32): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(32): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(33): error C2146: syntax error : missing ';' before identifier 'wclog' 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(33): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(33): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(33): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\program files\microsoft visual studio 10.0\vc\include\cmath(9): error C2297: '<<' : illegal, right operand has type 'const char [17]' 1>d:\program files\microsoft visual studio 10.0\vc\include\cmath(9): warning C4552: '<<' : operator has no effect; expected operator with side-effect 1>d:\program files\microsoft visual studio 10.0\vc\include\cmath(19): error C3861: 'sprintf': identifier not found 1>d:\program files\microsoft visual studio 10.0\vc\include\cmath(22): error C2297: '<<' : illegal, right operand has type 'char [18]' 1>d:\program files\microsoft visual studio 10.0\vc\include\cmath(22): error C2065: 'endl' : undeclared identifier 1>d:\program files\microsoft visual studio 10.0\vc\include\cmath(22): warning C4552: '<<' : operator has no effect; expected operator with side-effect 1>d:\program files\microsoft visual studio 10.0\vc\include\iosfwd(635): error C2378: 'std::istream' : redefinition; symbol cannot be overloaded with a typedef 1> d:\program files\microsoft visual studio 10.0\vc\include\iostream(25) : see declaration of 'std::istream' 1>d:\program files\microsoft visual studio 10.0\vc\include\iosfwd(636): error C2378: 'std::ostream' : redefinition; symbol cannot be overloaded with a typedef 1> d:\program files\microsoft visual studio 10.0\vc\include\iostream(26) : see declaration of 'std::ostream' 1>d:\program files\microsoft visual studio 10.0\vc\include\iosfwd(655): error C2378: 'std::wistream' : redefinition; symbol cannot be overloaded with a typedef 1> d:\program files\microsoft visual studio 10.0\vc\include\iostream(30) : see declaration of 'std::wistream' 1>d:\program files\microsoft visual studio 10.0\vc\include\iosfwd(656): error C2378: 'std::wostream' : redefinition; symbol cannot be overloaded with a typedef 1> d:\program files\microsoft visual studio 10.0\vc\include\iostream(31) : see declaration of 'std::wostream' 1>d:\program files\microsoft visual studio 10.0\vc\include\cmath(8): error C2084: function 'int main(void)' already has a body 1> d:\program files\microsoft visual studio 10.0\vc\include\cmath(7) : see previous definition of 'main' 1>d:\program files\microsoft visual studio 10.0\vc\include\cmath(9): error C2297: '<<' : illegal, right operand has type 'const char [17]' 1>d:\program files\microsoft visual studio 10.0\vc\include\cmath(9): warning C4552: '<<' : operator has no effect; expected operator with side-effect 1>d:\program files\microsoft visual studio 10.0\vc\include\cmath(22): error C2297: '<<' : illegal, right operand has type 'char [18]' 1>d:\program files\microsoft visual studio 10.0\vc\include\cmath(22): error C2065: 'endl' : undeclared identifier 1>d:\program files\microsoft visual studio 10.0\vc\include\cmath(22): warning C4552: '<<' : operator has no effect; expected operator with side-effect 1>d:\ragnarok\servidor_ragnabr\shield\ring-0-master\info\infos\stdafx.h(28): fatal error C1083: Cannot open include file: 'START.h': No such file or directory ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
  9. a tabela do mac address ficar? na mesma de login? Assim fica melhor para fazer as checagens.
  10. PEDIDO

    Estou precisando de uma LOGO Nome do servidor: RagnarokBR Cores: do Brasil grato
  11. bom trabalho, mas visto que essa modifica??o foi implementada no emulador cronus recentemente. N?o desmerecendo mas cobrar 10R$ por algo que ja foi feito em outro local.
  12. SQL

    desculpe o post rsrs, n tinha visto que ja tinha sido respondido. `group_id`=='1' por `group_id`='1'
  13. modifique onde tiver o nome prontera, em seguida ? necess?rio ajustar as coordenadas.
  14. NPC E MACROS

    substitua: getgmlevel() por: getgroupid()