Skip to forum content

You are not logged in. Please login or register.


forums.pvpgn.pro → [EN] The Source Code → [HELP] ERROR COMPILE MAKE COMMAND /sc and /spoofcheck

Pages 1

You must login or register to post a reply

RSS topic feed

Posts: 2

1

Topic: [HELP] ERROR COMPILE MAKE COMMAND /sc and /spoofcheck

Use PvPGN Magic Builder 2.07 (1.99 Pro)
Microsoft  Visual C++ 2010 Express

"make edit command.cpp"


I get error compile , source from : forums.harpywar.com/viewtopic.php?pid=7179#p7179

1>------ Build started: Project: ZERO_CHECK, Configuration: Release Win32 ------
2>------ Build started: Project: bnetd, Configuration: Release Win32 ------
2>  command.cpp
2>..\..\..\source\src\bnetd\command.cpp(845): warning C4146: unary minus operator applied to unsigned type, result still unsigned
2>..\..\..\source\src\bnetd\command.cpp(1868): warning C4101: 'ctag' : unreferenced local variable
2>..\..\..\source\src\bnetd\command.cpp(2059): warning C4101: 'i' : unreferenced local variable
2>..\..\..\source\src\bnetd\command.cpp(2059): warning C4101: 'j' : unreferenced local variable
2>..\..\..\source\src\bnetd\command.cpp(2488): warning C4101: 'i' : unreferenced local variable
2>..\..\..\source\src\bnetd\command.cpp(2488): warning C4101: 'j' : unreferenced local variable
2>..\..\..\source\src\bnetd\command.cpp(3042): warning C4101: 'i' : unreferenced local variable
2>..\..\..\source\src\bnetd\command.cpp(3128): warning C4101: 'j' : unreferenced local variable
2>..\..\..\source\src\bnetd\command.cpp(3182): warning C4101: 'j' : unreferenced local variable
2>..\..\..\source\src\bnetd\command.cpp(3268): warning C4101: 'i' : unreferenced local variable
2>..\..\..\source\src\bnetd\command.cpp(3647): warning C4101: 'i' : unreferenced local variable
2>..\..\..\source\src\bnetd\command.cpp(3918): warning C4101: 'i' : unreferenced local variable
2>..\..\..\source\src\bnetd\command.cpp(3918): warning C4101: 'j' : unreferenced local variable
2>..\..\..\source\src\bnetd\command.cpp(4263): warning C4101: 'i' : unreferenced local variable
2>..\..\..\source\src\bnetd\command.cpp(4263): warning C4101: 'j' : unreferenced local variable
2>..\..\..\source\src\bnetd\command.cpp(4368): warning C4244: '=' : conversion from 'time_t' to 'unsigned int', possible loss of data
2>..\..\..\source\src\bnetd\command.cpp(4448): warning C4244: '=' : conversion from 'time_t' to 'unsigned int', possible loss of data
2>..\..\..\source\src\bnetd\command.cpp(4502): warning C4101: 'i' : unreferenced local variable
2>..\..\..\source\src\bnetd\command.cpp(4502): warning C4101: 'j' : unreferenced local variable
2>..\..\..\source\src\bnetd\command.cpp(4969): error C2446: '!=' : no conversion from 'int' to 'const char *'
2>          Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
2>..\..\..\source\src\bnetd\command.cpp(4969): error C2040: '!=' : 'const char *' differs in levels of indirection from 'int'
2>..\..\..\source\src\bnetd\command.cpp(4970): error C2446: '==' : no conversion from 'int' to 'const char *'
2>          Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
2>..\..\..\source\src\bnetd\command.cpp(4970): error C2040: '==' : 'const char *' differs in levels of indirection from 'int'
2>..\..\..\source\src\bnetd\command.cpp(4974): error C2664: '_snprintf' : cannot convert parameter 1 from 'std::string' to 'char *'
2>          No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
2>..\..\..\source\src\bnetd\command.cpp(4976): error C2664: 'pvpgn::bnetd::do_whisper' : cannot convert parameter 2 from 'std::string' to 'const char *'
2>          No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
3>------ Build started: Project: ALL_BUILD, Configuration: Release Win32 ------
3>  Build all projects
========== Build: 2 succeeded, 1 failed, 21 up-to-date, 0 skipped ==========


Please help me to fix it

2

Re: [HELP] ERROR COMPILE MAKE COMMAND /sc and /spoofcheck

vallcerealz wrote:

Use PvPGN Magic Builder 2.07 (1.99 Pro)
Microsoft  Visual C++ 2010 Express

"make edit command.cpp"


I get error compile , source from : forums.harpywar.com/viewtopic.php?pid=7179#p7179

1>------ Build started: Project: ZERO_CHECK, Configuration: Release Win32 ------
2>------ Build started: Project: bnetd, Configuration: Release Win32 ------
2>  command.cpp
2>..\..\..\source\src\bnetd\command.cpp(845): warning C4146: unary minus operator applied to unsigned type, result still unsigned
2>..\..\..\source\src\bnetd\command.cpp(1868): warning C4101: 'ctag' : unreferenced local variable
2>..\..\..\source\src\bnetd\command.cpp(2059): warning C4101: 'i' : unreferenced local variable
2>..\..\..\source\src\bnetd\command.cpp(2059): warning C4101: 'j' : unreferenced local variable
2>..\..\..\source\src\bnetd\command.cpp(2488): warning C4101: 'i' : unreferenced local variable
2>..\..\..\source\src\bnetd\command.cpp(2488): warning C4101: 'j' : unreferenced local variable
2>..\..\..\source\src\bnetd\command.cpp(3042): warning C4101: 'i' : unreferenced local variable
2>..\..\..\source\src\bnetd\command.cpp(3128): warning C4101: 'j' : unreferenced local variable
2>..\..\..\source\src\bnetd\command.cpp(3182): warning C4101: 'j' : unreferenced local variable
2>..\..\..\source\src\bnetd\command.cpp(3268): warning C4101: 'i' : unreferenced local variable
2>..\..\..\source\src\bnetd\command.cpp(3647): warning C4101: 'i' : unreferenced local variable
2>..\..\..\source\src\bnetd\command.cpp(3918): warning C4101: 'i' : unreferenced local variable
2>..\..\..\source\src\bnetd\command.cpp(3918): warning C4101: 'j' : unreferenced local variable
2>..\..\..\source\src\bnetd\command.cpp(4263): warning C4101: 'i' : unreferenced local variable
2>..\..\..\source\src\bnetd\command.cpp(4263): warning C4101: 'j' : unreferenced local variable
2>..\..\..\source\src\bnetd\command.cpp(4368): warning C4244: '=' : conversion from 'time_t' to 'unsigned int', possible loss of data
2>..\..\..\source\src\bnetd\command.cpp(4448): warning C4244: '=' : conversion from 'time_t' to 'unsigned int', possible loss of data
2>..\..\..\source\src\bnetd\command.cpp(4502): warning C4101: 'i' : unreferenced local variable
2>..\..\..\source\src\bnetd\command.cpp(4502): warning C4101: 'j' : unreferenced local variable
2>..\..\..\source\src\bnetd\command.cpp(4969): error C2446: '!=' : no conversion from 'int' to 'const char *'
2>          Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
2>..\..\..\source\src\bnetd\command.cpp(4969): error C2040: '!=' : 'const char *' differs in levels of indirection from 'int'
2>..\..\..\source\src\bnetd\command.cpp(4970): error C2446: '==' : no conversion from 'int' to 'const char *'
2>          Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
2>..\..\..\source\src\bnetd\command.cpp(4970): error C2040: '==' : 'const char *' differs in levels of indirection from 'int'
2>..\..\..\source\src\bnetd\command.cpp(4974): error C2664: '_snprintf' : cannot convert parameter 1 from 'std::string' to 'char *'
2>          No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
2>..\..\..\source\src\bnetd\command.cpp(4976): error C2664: 'pvpgn::bnetd::do_whisper' : cannot convert parameter 2 from 'std::string' to 'const char *'
2>          No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
3>------ Build started: Project: ALL_BUILD, Configuration: Release Win32 ------
3>  Build all projects
========== Build: 2 succeeded, 1 failed, 21 up-to-date, 0 skipped ==========


Please help me to fix it

solved

        static int _handle_spoofc_command(t_connection * c, char const *text)
        {
            unsigned int i;
            t_connection *    user;
            t_game     *    game;
            char const texe[4] = " sc";
            for (i = 0; text[i] != ' ' && text[i] != '\0'; i++); /* skip command */
            for (; text[i] == ' '; i++);

            if ((game = conn_get_game(c)) && (user = game_get_owner(game)))
            {
                snprintf(msgtemp0, sizeof(msgtemp0), "%.64s", conn_get_username(user));
                //snprintf(msgtemp2, sizeof(msgtemp2), "%.64s",&texe[4]);
                do_whisper(c, msgtemp0, "sc");
                return 0;
            }
            else if (!(game = conn_get_game(c)))
            {
                message_send_text(c, message_type_error, c, "Solo en el juego!");
                return 0;
            }
            else
            {
                message_send_text(c, message_type_error, c, "Error: usted esta en el juego, pero no ha encontrado acogida.");
                return 0;
            }

            return 0;
        }

Posts: 2

Pages 1

You must login or register to post a reply

Who now at forum

Currently view post: 1 guest, 0 registered users

forums.pvpgn.pro → [EN] The Source Code → [HELP] ERROR COMPILE MAKE COMMAND /sc and /spoofcheck