HERAKLES Otomatik Avlı kalıcı sunucu. 19 Haziran'da açılıyor. Atius & Wizard güvencesiyle hemen kayıt ol, ön kayıt ödülleri aktif. HEMEN TIKLA!
Kod:
OfflineshopCache.cpp: In function 'std::string offlineshop::CreateShopCacheInsertShopQuery(DWORD, DWORD, const char*, offlineshop::TShopPosition)':
OfflineshopCache.cpp:1336:177: warning: format '%u' expects argument of type 'unsigned int', but argument 7 has type 'long int' [-Wformat=]
1336 | snprintf(szQuery, sizeof(szQuery), "INSERT INTO `player`.`offlineshop_shops` (`owner_id`, `duration`, `name`, `pos_x`, `pos_y`, `map_index`, `ch annel`) VALUES(%u, %u, '%s', %u, %u, %d, %d);",
| ~^
| |
| unsigned int
| %lu
1337 | dwOwnerID, dwDuration, szEscapeString, pos.x, pos.y, pos.lMapIndex, pos.bChannel
| ~~~~~
| |
| long int
OfflineshopCache.cpp:1336:181: warning: format '%u' expects argument of type 'unsigned int', but argument 8 has type 'long int' [-Wformat=]
1336 | snprintf(szQuery, sizeof(szQuery), "INSERT INTO `player`.`offlineshop_shops` (`owner_id`, `duration`, `name`, `pos_x`, `pos_y`, `map_index`, `ch annel`) VALUES(%u, %u, '%s', %u, %u, %d, %d);",
| ~^
| |
| unsigned int
| %lu
1337 | dwOwnerID, dwDuration, szEscapeString, pos.x, pos.y, pos.lMapIndex, pos.bChannel
| ~~~~~
| |
| long int
OfflineshopCache.cpp:1336:185: warning: format '%d' expects argument of type 'int', but argument 9 has type 'long int' [-Wformat=]
1336 | snprintf(szQuery, sizeof(szQuery), "INSERT INTO `player`.`offlineshop_shops` (`owner_id`, `duration`, `name`, `pos_x`, `pos_y`, `map_index`, `ch annel`) VALUES(%u, %u, '%s', %u, %u, %d, %d);",
| ~^
| |
| int
| %ld
1337 | dwOwnerID, dwDuration, szEscapeString, pos.x, pos.y, pos.lMapIndex, pos.bChannel
| ~~~~~~~~~~~~~
| |
| long int
OfflineshopCache.cpp: In member function 'bool offlineshop::CShopCache::ChangeShopName(DWORD, const char*)':
OfflineshopCache.cpp:287:10: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 65 equals destination size [-Wstringop-truncation]
287 | strncpy(rShop.szName, szName, sizeof(rShop.szName));
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
OfflineshopCache.cpp: In member function 'bool offlineshop::CShopCache::CreateShop(DWORD, DWORD, const char*, std::vector<offlineshop::CShopCache::SShopCa cheItemInfo>&, offlineshop::TShopPosition)':
OfflineshopCache.cpp:252:10: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 65 equals destination size [-Wstringop-truncation]
252 | strncpy(qi->szName, szName, sizeof(qi->szName));
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
OfflineshopCache.cpp: In member function 'bool offlineshop::CShopCache::PutShop(DWORD, DWORD, const char*, offlineshop::TShopPosition)':
OfflineshopCache.cpp:323:10: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 65 equals destination size [-Wstringop-truncation]
323 | strncpy(sShop.szName, szName, sizeof(sShop.szName));
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compiling ClientManagerOfflineshop.cpp
ClientManagerOfflineshop.cpp: In member function 'bool CClientManager::InitializeOfflineshopTable()':
ClientManagerOfflineshop.cpp:52:10: warning: unused variable 'dwOwner' [-Wunused-variable]
52 | DWORD dwOwner =0, dwDuration=0;
| ^~~~~~~
ClientManagerOfflineshop.cpp:52:22: warning: unused variable 'dwDuration' [-Wunused-variable]
52 | DWORD dwOwner =0, dwDuration=0;
| ^~~~~~~~~~
ClientManagerOfflineshop.cpp: In member function 'bool CClientManager::SendOfflineShopChangeName(DWORD, const char*)':
ClientManagerOfflineshop.cpp:1151:9: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 65 equals destination size [-Wstringop-truncatio n]
1151 | strncpy(subpack.szName, szName, sizeof(subpack.szName));
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ClientManagerOfflineshop.cpp: In member function 'bool CClientManager::InitializeOfflineshopTable()':
ClientManagerOfflineshop.cpp:187:12: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 65 equals destination size [-Wstringop-truncatio n]
187 | strncpy(offer.szBuyerName, row[col++], sizeof(offer.szBuyerName));
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ClientManagerOfflineshop.cpp:225:12: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 65 equals destination size [-Wstringop-truncatio n]
225 | strncpy(info.szOwnerName, row[col++], sizeof(info.szOwnerName));
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ClientManagerOfflineshop.cpp:282:12: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 65 equals destination size [-Wstringop-truncatio n]
282 | strncpy(offer.szBuyerName, row[col++], sizeof(offer.szBuyerName));
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
linking ../db_r41024
root@Light5:/usr/src/Server/db/src #
Merhaba İkarus Offline Shop Eklerken Böyle bir hata ile karşılaşmaktayım,
eklemelerimi gözden çok kez geçirdim ama sorunu çözemedim yardım ederseniz sevinirim :/
