Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- basehooklinux sudo make master - ~
- test -d bin/Debug || mkdir -p bin/Debug
- test -d obj/Debug || mkdir -p obj/Debug
- clang++ -fpermissive -pthread -Wall -fno-use-cxa-atexit -std=c++11 -g -fPIC -c main.cpp -o obj/Debug/main.o
- In file included from main.cpp:3:
- In file included from ./main.h:15:
- ./sdk.h:20:9: error: reinterpret_cast from 'const void *' to 'bool (*)(void *, int,
- CEngineClient::player_info_s *)' casts away qualifiers
- return reinterpret_cast<Fn>(getvtable(inst, offset)[index]);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./sdk.h:47:16: note: in instantiation of function template specialization 'getvfunc<bool
- (*)(void *, int, CEngineClient::player_info_s *)>' requested here
- return getvfunc<oGetPlayerInfo>(this, 8)(this, iIndex, pInfo);
- ^
- ./sdk.h:20:9: error: reinterpret_cast from 'const void *' to 'int (*)(void *)' casts
- away qualifiers
- return reinterpret_cast<Fn>(getvtable(inst, offset)[index]);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./sdk.h:53:16: note: in instantiation of function template specialization
- 'getvfunc<int (*)(void *)>' requested here
- return getvfunc< oGetLocalPlayer >(this, 12)(this);
- ^
- ./sdk.h:20:9: error: reinterpret_cast from 'const void *' to 'CBaseEntity *(*)(void *,
- int)' casts away qualifiers
- return reinterpret_cast<Fn>(getvtable(inst, offset)[index]);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./sdk.h:63:16: note: in instantiation of function template specialization
- 'getvfunc<CBaseEntity *(*)(void *, int)>' requested here
- return getvfunc<oGetClientEntity>(this, 3)(this, index);
- ^
- ./sdk.h:20:9: error: reinterpret_cast from 'const void *' to 'bool (*)(void *, const
- Vector &, Vector &)' casts away qualifiers
- return reinterpret_cast<Fn>(getvtable(inst, offset)[index]);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./sdk.h:74:16: note: in instantiation of function template specialization 'getvfunc<bool
- (*)(void *, const Vector &, Vector &)>' requested here
- return getvfunc<oScreenPosition>(this, 11)(this, vIn, vOut);
- ^
- ./sdk.h:20:9: error: reinterpret_cast from 'const void *' to 'void (*)(void *, int, int,
- int, int)' casts away qualifiers
- return reinterpret_cast<Fn>(getvtable(inst, offset)[index]);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./sdk.h:83:4: note: in instantiation of function template specialization 'getvfunc<void
- (*)(void *, int, int, int, int)>' requested here
- getvfunc<oDrawSetColor>(this, 14)(this, r, g, b, a);
- ^
- ./sdk.h:20:9: error: reinterpret_cast from 'const void *' to 'void (*)(void *, unsigned
- long long)' casts away qualifiers
- return reinterpret_cast<Fn>(getvtable(inst, offset)[index]);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./sdk.h:98:4: note: in instantiation of function template specialization 'getvfunc<void
- (*)(void *, unsigned long long)>' requested here
- getvfunc<oDrawSetTextFont>(this, 23)(this, font);
- ^
- ./sdk.h:20:9: error: reinterpret_cast from 'const void *' to
- 'void (*)(void *, int, int)' casts away qualifiers
- return reinterpret_cast<Fn>(getvtable(inst, offset)[index]);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./sdk.h:108:4: note: in instantiation of function template specialization 'getvfunc<void
- (*)(void *, int, int)>' requested here
- getvfunc<oDrawSetTextPos>(this, 26)(this, x, y);
- ^
- ./sdk.h:20:9: error: reinterpret_cast from 'const void *' to 'void (*)(void *, const
- wchar_t *, int, int)' casts away qualifiers
- return reinterpret_cast<Fn>(getvtable(inst, offset)[index]);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./sdk.h:113:11: note: in instantiation of function template specialization
- 'getvfunc<void (*)(void *, const wchar_t *, int, int)>' requested here
- return getvfunc<oDrawPrintText>(this, 28)(this, text, te...
- ^
- ./sdk.h:20:9: error: reinterpret_cast from 'const void *' to 'unsigned long long
- (*)(void *)' casts away qualifiers
- return reinterpret_cast<Fn>(getvtable(inst, offset)[index]);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./sdk.h:118:11: note: in instantiation of function template specialization
- 'getvfunc<unsigned long long (*)(void *)>' requested here
- return getvfunc<oCreateFont>(this, 71)(this);
- ^
- ./sdk.h:20:9: error: reinterpret_cast from 'const void *' to 'void (*)(void *, unsigned
- long long, const char *, int, int, int, int, int, int, int)' casts away qualifiers
- return reinterpret_cast<Fn>(getvtable(inst, offset)[index]);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./sdk.h:123:4: note: in instantiation of function template specialization 'getvfunc<void
- (*)(void *, unsigned long long, const char *, int, int, int, int, int, int, int)>'
- requested here
- getvfunc<oSetFontGlyphSet>(this, 72)(this, font, FontNam...
- ^
- ./sdk.h:20:9: error: reinterpret_cast from 'const void *' to 'void (*)(void *, unsigned
- long long, const wchar_t *, int &, int &)' casts away qualifiers
- return reinterpret_cast<Fn>(getvtable(inst, offset)[index]);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./sdk.h:128:4: note: in instantiation of function template specialization 'getvfunc<void
- (*)(void *, unsigned long long, const wchar_t *, int &, int &)>' requested here
- getvfunc<oGetTextSize>(this, 79)(this, font, text, wide, tall);
- ^
- ./sdk.h:20:9: error: reinterpret_cast from 'const void *' to 'const char *(*)(void *,
- unsigned long long)' casts away qualifiers
- return reinterpret_cast<Fn>(getvtable(inst, offset)[index]);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./sdk.h:138:11: note: in instantiation of function template specialization
- 'getvfunc<const char *(*)(void *, unsigned long long)>' requested here
- return getvfunc<oGetName>(this, 37)(this, vguiPanel);
- ^
- 12 errors generated.
- makefile:58: recipe for target 'obj/Debug/main.o' failed
- make: *** [obj/Debug/main.o] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement