Sigoles
Discord: @sigoles
- Joined
- Nov 20, 2015
- Messages
- 1,200
- Solutions
- 2
- Reaction score
- 149
I'm trying make on query in iologindata.cpp
but got an error:
C++:
DBInsert storageQuery("INSERT INTO `player_storage` (`player_id`, `key`, `value`) VALUES (" << player->getGUID() << ", '606163', '0');");
but got an error:
Code:
/home/Otserver/src/iologindata.cpp: In static member function ‘static bool IOLoginData::loadPlayer(Player*, DBResult_ptr)’:
/home/Otserver/src/iologindata.cpp:724:116: error: invalid operands of types ‘const char [68]’ and ‘uint32_t {aka unsigned int}’ to binary ‘operator<<’
DBInsert storageQuery("INSERT INTO `player_storage` (`player_id`, `key`, `value`) VALUES (" << player->getGUID() << ", '606163', '0');");
^
/home/Otserver/src/iologindata.cpp: In static member function ‘static bool IOLoginData::savePlayer(Player*, bool)’:
/home/Otserver/src/iologindata.cpp:1054:115: error: invalid operands of types ‘const char [68]’ and ‘uint32_t {aka unsigned int}’ to binary ‘operator<<’
DBInsert storageQuery("INSERT INTO `player_storage` (`player_id`, `key`, `value`) VALUES (" << player->getGUID() << ", '606163', '1');");
^
^