- Mesaj
- 336
- Çözümler
- 16
- Beğeni
- 152
- Puan
- 529
- Ticaret Puanı
- 0
Arkadaşlar Game Source won sistemini eklemeye çalışıyorum da aşşağıdaki gibi bir hata alıyorum. Hata satırlarına baktığımda her hangi bir sorun göremedim neyeden kaynaklı olabilir dosyayı da bırakıyorum bakabilirmissiniz?
Hatalar::
char_item.cpp: In member function 'bool CHARACTER::UseItemEx(LPITEM, TItemPos, short unsigned int)':
char_item.cpp:5909:6: error: duplicate case value
5909 | case USE_CLEAR:
| ^~~~
char_item.cpp:3312:3: note: previously used here
3312 | case ITEM_FISH:
| ^~~~
char_item.cpp:5927:6: error: duplicate case value
5927 | case USE_INVISIBILITY:
| ^~~~
char_item.cpp:3256:3: note: previously used here
3256 | case ITEM_ROD:
| ^~~~
char_item.cpp:6131:6: error: duplicate case value
6131 | case USE_POTION_CONTINUE:
| ^~~~
char_item.cpp:3152:3: note: previously used here
3152 | case ITEM_UNIQUE:
| ^~~~
char_item.cpp:6227:6: error: duplicate case value
6227 | case USE_TALISMAN:
| ^~~~
char_item.cpp:3254:3: note: previously used here
3254 | case ITEM_WEAPON:
| ^~~~
char_item.cpp:6324:6: error: duplicate case value
6324 | case USE_TUNING:
| ^~~~
char_item.cpp:3255:3: note: previously used here
3255 | case ITEM_ARMOR:
| ^~~~
char_item.cpp:6450:6: error: duplicate case value
6450 | case USE_PUT_INTO_BELT_SOCKET:
| ^~~~
char_item.cpp:3298:3: note: previously used here
3298 | case ITEM_DS:
| ^~~~
char_item.cpp:6451:6: error: duplicate case value
6451 | case USE_PUT_INTO_RING_SOCKET:
| ^~~~
char_item.cpp:3305:3: note: previously used here
3305 | case ITEM_SPECIAL_DS:
| ^~~~
char_item.cpp:6452:6: error: duplicate case value
6452 | case USE_PUT_INTO_ACCESSORY_SOCKET:
| ^~~~
char_item.cpp:3339:3: note: previously used here
3339 | case ITEM_TREASURE_KEY:
| ^~~~
char_item.cpp:6453:6: error: duplicate case value
6453 | case USE_ADD_ACCESSORY_SOCKET:
| ^~~~
char_item.cpp:3332:3: note: previously used here
3332 | case ITEM_TREASURE_BOX:
| ^~~~
char_item.cpp:6454:6: error: duplicate case value
6454 | case USE_CLEAN_SOCKET:
| ^~~~
char_item.cpp:3624:3: note: previously used here
3624 | case ITEM_SKILLBOOK:
| ^~~~
char_item.cpp:6455:6: error: duplicate case value
6455 | case USE_CHANGE_ATTRIBUTE:
| ^~~~
char_item.cpp:3074:3: note: previously used here
3074 | case ITEM_QUEST:
| ^~~~
char_item.cpp:6456:6: error: duplicate case value
6456 | case USE_CHANGE_ATTRIBUTE2 :
| ^~~~
char_item.cpp:3287:3: note: previously used here
3287 | case ITEM_PICK:
| ^~~~
char_item.cpp:6457:6: error: duplicate case value
6457 | case USE_ADD_ATTRIBUTE:
| ^~~~
char_item.cpp:3071:3: note: previously used here
3071 | case ITEM_POLYMORPH:
| ^~~~
char_item.cpp:6458:6: error: duplicate case value
6458 | case USE_ADD_ATTRIBUTE2:
| ^~~~
char_item.cpp:3596:3: note: previously used here
3596 | case ITEM_SKILLFORGET:
| ^~~~
char_item.cpp:6913:6: error: duplicate case value
6913 | case USE_MOVE:
| ^~~~
char_item.cpp:3731:3: note: previously used here
3731 | case ITEM_USE:
| ^~~~
char_item.cpp:7006:6: error: duplicate case value
7006 | case USE_RECIPE :
| ^~~~
char_item.cpp:3425:2: note: previously used here
3425 | case ITEM_GIFTBOX:
| ^~~~
char_item.cpp: At global scope:
char_item.cpp:7075:4: error: expected unqualified-id before 'break'
7075 | break;
| ^~~~~
char_item.cpp:7077:3: error: expected unqualified-id before 'case'
7077 | case ITEM_METIN:
| ^~~~
char_item.cpp:7160:4: error: expected unqualified-id before 'break'
7160 | break;
| ^~~~~
char_item.cpp:7162:3: error: expected unqualified-id before 'case'
7162 | case ITEM_AUTOUSE:
| ^~~~
char_item.cpp:7169:3: error: expected unqualified-id before 'case'
7169 | case ITEM_TOTEM:
| ^~~~
char_item.cpp:7174:4: error: expected unqualified-id before 'break'
7174 | break;
| ^~~~~
char_item.cpp:7176:3: error: expected unqualified-id before 'case'
7176 | case ITEM_BLEND:
| ^~~~
char_item.cpp:7183:11: error: expected constructor, destructor, or type conversion before '(' token
7183 | sys_log(0,"ITEM_BLEND!!");
| ^
char_item.cpp:7184:4: error: expected unqualified-id before 'if'
7184 | if (Blend_Item_find(item->GetVnum()))
| ^~
char_item.cpp:7221:4: error: expected unqualified-id before 'break'
7221 | break;
| ^~~~~
char_item.cpp:7222:3: error: expected unqualified-id before 'case'
7222 | case ITEM_EXTRACT:
| ^~~~
char_item.cpp:7247:4: error: expected unqualified-id before 'break'
7247 | break;
| ^~~~~
char_item.cpp:7249:3: error: expected unqualified-id before 'case'
7249 | case ITEM_NONE:
| ^~~~
char_item.cpp:7251:4: error: expected unqualified-id before 'break'
7251 | break;
| ^~~~~
char_item.cpp:7253:3: error: expected unqualified-id before 'default'
7253 | default:
| ^~~~~~~
char_item.cpp:7255:4: error: expected unqualified-id before 'return'
7255 | return false;
| ^~~~~~
char_item.cpp:7256:2: error: expected declaration before '}' token
7256 | }
| ^
char_item.cpp:7258:2: error: expected unqualified-id before 'return'
7258 | return true;
| ^~~~~~
char_item.cpp:7259:1: error: expected declaration before '}' token
7259 | }
| ^
gmake[1]: *** [Makefile:187: .obj/char_item.o] Error 1
gmake[1]: Leaving directory '/home/Game_Source/Srcs/Server/game/src'
gmake: *** [Makefile:111: all] Error 2
root@localhost:/home/Game_Source/Srcs/Server #