Krutzo 1
Krutzo
shrpnl 1
shrpnl
Best Studio 1
Best Studio
D 1
delimuratt
Aliyldrim 1
Aliyldrim
Mt2Hizmet 1
Mt2Hizmet
noisiv 1
noisiv
Manwe Work 1
Manwe Work
melankolıa18 1
melankolıa18
Agora Metin2 1
Agora Metin2
Cannn6161 1
Cannn6161
Hikaye Ekle
Reklam vermek için turkmmo@gmail.com

Cevaplanmadı Marty sama 5.8 ClientManagerOfflineshop.cpp:47:10: warning: unused variable 'dwOwner'

Alexander2020

DISCORD: Alexander9501#5850
Deneme Mod
Katılım
18 Kas 2019
Konular
187
Mesajlar
2,532
Çözüm
14
Online süresi
7mo 27d
Reaksiyon Skoru
1,724
Altın Konu
3
Başarım Puanı
283
Yaş
12
MmoLira
22,889
DevLira
273
Ticaret - 100%
1   0   0

ROHAN2 WORLD 1-120 TR TİPİ OFFICIAL YOHARA, BALATHOR VE AMON! 80. GÜNÜNDE! +10.000 ONLİNE! HİLE VE BOT %100 ENGELLİ HEMEN TIKLA!

Hello colleagues, how are you? Would anyone be so kind as to help me solve this?


1727999972633.png



compiling ClientManagerOfflineshop.cpp
ClientManagerOfflineshop.cpp:47:10: warning: unused variable 'dwOwner' [-Wunused-variable]
47 | DWORD dwOwner =0, dwDuration=0;
| ^~~~~~~
ClientManagerOfflineshop.cpp:47:22: warning: unused variable 'dwDuration' [-Wunused-variable]
47 | DWORD dwOwner =0, dwDuration=0;
| ^~~~~~~~~~
OfflineshopCache.cpp:1162:43: warning: format specifies type 'unsigned int' but the argument has type 'long' [-Wformat]
1161 | snprintf(szQuery, sizeof(szQuery), "INSERT INTO `player`.`offlineshop_shops` (`owner_id`, `duration`, `name`, `pos_x`, `pos_y`, `map_index`, `channel`) VALUES(%u, %u, '%s', %u, %u, %d, %d);",
| ~~
| %ld
1162 | dwOwnerID, dwDuration, szEscapeString, pos.x, pos.y, pos.lMapIndex, pos.bChannel
| ^~~~~
OfflineshopCache.cpp:1162:50: warning: format specifies type 'unsigned int' but the argument has type 'long' [-Wformat]
1161 | snprintf(szQuery, sizeof(szQuery), "INSERT INTO `player`.`offlineshop_shops` (`owner_id`, `duration`, `name`, `pos_x`, `pos_y`, `map_index`, `channel`) VALUES(%u, %u, '%s', %u, %u, %d, %d);",
| ~~
| %ld
1162 | dwOwnerID, dwDuration, szEscapeString, pos.x, pos.y, pos.lMapIndex, pos.bChannel
| ^~~~~
OfflineshopCache.cpp:1162:57: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
1161 | snprintf(szQuery, sizeof(szQuery), "INSERT INTO `player`.`offlineshop_shops` (`owner_id`, `duration`, `name`, `pos_x`, `pos_y`, `map_index`, `channel`) VALUES(%u, %u, '%s', %u, %u, %d, %d);",
| ~~
| %ld
1162 | dwOwnerID, dwDuration, szEscapeString, pos.x, pos.y, pos.lMapIndex, pos.bChannel
| ^~~~~~~~~~~~~
2 warnings generated.
3 warnings generated.
linking ../db
 

Ekli dosyalar

  • src.zip
    src.zip
    6.2 MB · Görüntüleme: 0
47. satırdaki bu iki değişkenin kullanılmadığını belirtiyor.

Delete:
DWORD dwOwner =0, dwDuration=0;

1161, 1162 satırlarında değişkenin belirttiği %u ve %d olan formatları %ld yapmalısın
 
Afirma que estas dos variables en la línea 47 no se utilizan.

Borrar:
DWORD dwOwner =0, dwDuration=0;

En las líneas 1161 y 1162, debe cambiar los formatos %u y %d especificados por la variable a %ld.
Discordia pliss
 

Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)

Geri
Üst