Synth
Exalted Member
Sup everyone as title said today i try to add the Vote Point System maded by @Tommy,so i think its outdated i get custom errors after compile:
Thank you!
Synth!
I try to understand this great code but i didn't know how to fix this errors so wiried!3>trinitycore\src\server\scripts\custom\VotePoints.h(27): error C2059: syntax error : '<' (TrinityCore\src\server\scripts\Custom\votepoints.cpp)
3>trinitycore\src\server\scripts\custom\VotePoints.h(27): error C2238: unexpected token(s) preceding ';' (TrinityCore\src\server\scripts\Custom\votepoints.cpp)
3>trinitycore\src\server\scripts\custom\VotePoints.h(27): error C2059: syntax error : '<' (TrinityCore\src\server\scripts\Custom\cmd_vote_points.cpp)
3>trinitycore\src\server\scripts\custom\VotePoints.h(27): error C2238: unexpected token(s) preceding ';' (TrinityCore\src\server\scripts\Custom\cmd_vote_points.cpp)
3>TrinityCore\src\server\scripts\Custom\votepoints.cpp(34): error C2065: 'LOGIN_SEL_POINTS' : undeclared identifier
3>TrinityCore\src\server\scripts\Custom\votepoints.cpp(35): error C2065: 'LOGIN_UPD_POINTS' : undeclared identifier
3>TrinityCore\src\server\scripts\Custom\cmd_vote_points.cpp(38): error C2555: 'cmd_vote_points::GetCommands': overriding virtual function return type differs and is not covariant from 'CommandScript::GetCommands'
3> TrinityCore\src\server\game\Scripting\ScriptMgr.h(537) : see declaration of 'CommandScript::GetCommands'
3>TrinityCore\src\server\scripts\Custom\cmd_vote_points.cpp(21): error C2440: 'initializing' : cannot convert from 'initializer-list' to 'ChatCommand'
3> No constructor could take the source type, or constructor overload resolution was ambiguous
3>TrinityCore\src\server\scripts\Custom\votepoints.cpp(65): error C2065: 'LOGIN_LOAD_POINTS' : undeclared identifier
3>TrinityCore\src\server\scripts\Custom\votepoints.cpp(69): error C2039: 'outInfo' : is not a member of 'Log'
3> TrinityCore\src\common\Logging/Log.h(38) : see declaration of 'Log'
3>TrinityCore\src\server\scripts\Custom\votepoints.cpp(69): error C2065: 'LOG_FILTER_SERVER_LOADING' : undeclared identifier
3>TrinityCore\src\server\scripts\Custom\votepoints.cpp(86): error C2039: 'outInfo' : is not a member of 'Log'
3> TrinityCore\src\common\Logging/Log.h(38) : see declaration of 'Log'
3>TrinityCore\src\server\scripts\Custom\votepoints.cpp(86): error C2065: 'LOG_FILTER_SERVER_LOADING' : undeclared identifier
3>TrinityCore\src\server\scripts\Custom\cmd_vote_points.cpp(27): error C2440: 'initializing' : cannot convert from 'initializer-list' to 'ChatCommand'
3> No constructor could take the source type, or constructor overload resolution was ambiguous
3>TrinityCore\src\server\scripts\Custom\cmd_vote_points.cpp(34): error C2275: 'ACE_Singleton' : illegal use of this type as an expression
3> trinitycore\src\server\scripts\custom\VotePoints.h(27) : see declaration of 'ACE_Singleton'
3>TrinityCore\src\server\scripts\Custom\cmd_vote_points.cpp(34): error C2143: syntax error : missing ';' before '>'
3>TrinityCore\src\server\scripts\Custom\cmd_vote_points.cpp(34): error C2039: 'instance' : is not a member of '`global namespace''
4>------ Build started: Project: worldserver, Configuration: Release Win32 ------
4>game.lib(ScriptLoader.obj) : error LNK2019: unresolved external symbol "void __cdecl AddSC_vote_points(void)" (?AddSC_vote_points@@YAXXZ) referenced in function "void __cdecl AddCustomScripts(void)" (?AddCustomScripts@@YAXXZ)
4>Build\bin\Release\worldserver.exe : fatal error LNK1120: 1 unresolved externals
========== Build: 2 succeeded, 2 failed, 18 up-to-date, 0 skipped ==========
Thank you!
Synth!