katos
Noble Member
Hi all (again)
Having issues updating / adding to an old exchange NPC.
I've added a few functions but frankly, am failing rather monumentally.
Errors occurring:
Script:
http://pastebin.com/PxsaMKAS
Any help much appreciated.
Thanks in advance!
Having issues updating / adding to an old exchange NPC.
I've added a few functions but frankly, am failing rather monumentally.
Errors occurring:
Error 1 error C2039: 'isInCombat' : is not a member of 'Player' D:\katos\test core\dev\src\server\scripts\Custom\exchange.cpp 19 1 scripts
Error 2 error C2664: 'void Unit::Whisper(uint32,Player *,bool)' : cannot convert argument 1 from 'const char [19]' to 'uint32' D:\katos\test core\dev\src\server\scripts\Custom\exchange.cpp 22 1 scripts
Error 3 error C2664: 'void Unit::Whisper(uint32,Player *,bool)' : cannot convert argument 1 from 'const char [27]' to 'uint32' D:\katos\test core\dev\src\server\scripts\Custom\exchange.cpp 76 1 scripts
Error 4 error C2664: 'void Unit::Whisper(uint32,Player *,bool)' : cannot convert argument 1 from 'const char [73]' to 'uint32' D:\katos\test core\dev\src\server\scripts\Custom\exchange.cpp 81 1 scripts
Error 5 error C2664: 'void Unit::Whisper(uint32,Player *,bool)' : cannot convert argument 1 from 'const char [27]' to 'uint32' D:\katos\test core\dev\src\server\scripts\Custom\exchange.cpp 90 1 scripts
Error 6 error C2664: 'void Unit::Whisper(uint32,Player *,bool)' : cannot convert argument 1 from 'const char [73]' to 'uint32' D:\katos\test core\dev\src\server\scripts\Custom\exchange.cpp 95 1 scripts
Error 7 error C2664: 'void Unit::Whisper(uint32,Player *,bool)' : cannot convert argument 1 from 'const char [27]' to 'uint32' D:\katos\test core\dev\src\server\scripts\Custom\exchange.cpp 104 1 scripts
Error 8 error C2664: 'void Unit::Whisper(uint32,Player *,bool)' : cannot convert argument 1 from 'const char [73]' to 'uint32' D:\katos\test core\dev\src\server\scripts\Custom\exchange.cpp 109 1 scripts
Error 9 error C2664: 'void Unit::Whisper(uint32,Player *,bool)' : cannot convert argument 1 from 'const char [27]' to 'uint32' D:\katos\test core\dev\src\server\scripts\Custom\exchange.cpp 118 1 scripts
Error 10 error C2664: 'void Unit::Whisper(uint32,Player *,bool)' : cannot convert argument 1 from 'const char [73]' to 'uint32' D:\katos\test core\dev\src\server\scripts\Custom\exchange.cpp 123 1 scripts
Error 11 error C2664: 'void Unit::Whisper(uint32,Player *,bool)' : cannot convert argument 1 from 'const char [27]' to 'uint32' D:\katos\test core\dev\src\server\scripts\Custom\exchange.cpp 132 1 scripts
Error 12 error C2664: 'void Unit::Whisper(uint32,Player *,bool)' : cannot convert argument 1 from 'const char [73]' to 'uint32' D:\katos\test core\dev\src\server\scripts\Custom\exchange.cpp 137 1 scripts
Error 13 error C2664: 'void Unit::Whisper(uint32,Player *,bool)' : cannot convert argument 1 from 'const char [27]' to 'uint32' D:\katos\test core\dev\src\server\scripts\Custom\exchange.cpp 146 1 scripts
Error 14 error C2664: 'void Unit::Whisper(uint32,Player *,bool)' : cannot convert argument 1 from 'const char [73]' to 'uint32' D:\katos\test core\dev\src\server\scripts\Custom\exchange.cpp 151 1 scripts
Error 15 error C2664: 'void Unit::Whisper(uint32,Player *,bool)' : cannot convert argument 1 from 'const char [27]' to 'uint32' D:\katos\test core\dev\src\server\scripts\Custom\exchange.cpp 161 1 scripts
Error 16 error C2664: 'void Unit::Whisper(uint32,Player *,bool)' : cannot convert argument 1 from 'const char [73]' to 'uint32' D:\katos\test core\dev\src\server\scripts\Custom\exchange.cpp 166 1 scripts
Error 17 error C2664: 'void Unit::Whisper(uint32,Player *,bool)' : cannot convert argument 1 from 'const char [27]' to 'uint32' D:\katos\test core\dev\src\server\scripts\Custom\exchange.cpp 175 1 scripts
Error 18 error C2664: 'void Unit::Whisper(uint32,Player *,bool)' : cannot convert argument 1 from 'const char [73]' to 'uint32' D:\katos\test core\dev\src\server\scripts\Custom\exchange.cpp 180 1 scripts
Error 19 error C2664: 'void Unit::Whisper(uint32,Player *,bool)' : cannot convert argument 1 from 'const char [27]' to 'uint32' D:\katos\test core\dev\src\server\scripts\Custom\exchange.cpp 189 1 scripts
Error 20 error C2664: 'void Unit::Whisper(uint32,Player *,bool)' : cannot convert argument 1 from 'const char [73]' to 'uint32' D:\katos\test core\dev\src\server\scripts\Custom\exchange.cpp 194 1 scripts
Error 21 error C2664: 'void Unit::Whisper(uint32,Player *,bool)' : cannot convert argument 1 from 'const char [27]' to 'uint32' D:\katos\test core\dev\src\server\scripts\Custom\exchange.cpp 203 1 scripts
Error 22 error C2664: 'void Unit::Whisper(uint32,Player *,bool)' : cannot convert argument 1 from 'const char [73]' to 'uint32' D:\katos\test core\dev\src\server\scripts\Custom\exchange.cpp 208 1 scripts
Error 23 error C2664: 'void Unit::Whisper(uint32,Player *,bool)' : cannot convert argument 1 from 'const char [27]' to 'uint32' D:\katos\test core\dev\src\server\scripts\Custom\exchange.cpp 217 1 scripts
Error 24 error C2664: 'void Unit::Whisper(uint32,Player *,bool)' : cannot convert argument 1 from 'const char [73]' to 'uint32' D:\katos\test core\dev\src\server\scripts\Custom\exchange.cpp 222 1 scripts
Error 25 error C2664: 'void Unit::Whisper(uint32,Player *,bool)' : cannot convert argument 1 from 'const char [27]' to 'uint32' D:\katos\test core\dev\src\server\scripts\Custom\exchange.cpp 231 1 scripts
Error 26 error C2664: 'void Unit::Whisper(uint32,Player *,bool)' : cannot convert argument 1 from 'const char [73]' to 'uint32' D:\katos\test core\dev\src\server\scripts\Custom\exchange.cpp 236 1 scripts
Error 27 error C2061: syntax error : identifier 'pPlayer' D:\katos\test core\dev\src\server\scripts\Custom\exchange.cpp 241 1 scripts
Error 28 error C2143: syntax error : missing ';' before '{' D:\katos\test core\dev\src\server\scripts\Custom\exchange.cpp 242 1 scripts
Error 29 error C2664: 'void Unit::Whisper(uint32,Player *,bool)' : cannot convert argument 1 from 'const char [27]' to 'uint32' D:\katos\test core\dev\src\server\scripts\Custom\exchange.cpp 246 1 scripts
Error 30 error C2181: illegal else without matching if D:\katos\test core\dev\src\server\scripts\Custom\exchange.cpp 248 1 scripts
Error 31 error C2664: 'void Unit::Whisper(uint32,Player *,bool)' : cannot convert argument 1 from 'const char [73]' to 'uint32' D:\katos\test core\dev\src\server\scripts\Custom\exchange.cpp 251 1 scripts
Error 32 error C1075: end of file found before the left brace '{' at 'D:\katos\test core\dev\src\server\scripts\Custom\exchange.cpp(261)' was matched D:\katos\test core\dev\src\server\scripts\Custom\exchange.cpp 263 1 scripts
Error 33 error LNK2019: unresolved external symbol "void __cdecl AddSC_npc_exchanger(void)" (?AddSC_npc_exchanger@@YAXXZ) referenced in function "void __cdecl AddCustomScripts(void)" (?AddCustomScripts@@YAXXZ) D:\katos\test core\buildtest\src\server\worldserver\game.lib(ScriptLoader.obj) worldserver
Error 34 error LNK1120: 1 unresolved externals D:\katos\test core\buildtest\bin\Debug\worldserver.exe worldserver
Script:
http://pastebin.com/PxsaMKAS
Any help much appreciated.
Thanks in advance!