Yardım Build Hata

  • Konuyu açan Konuyu açan Chiqomt2
  • Açılış Tarihi Açılış Tarihi
  • Yanıt Yanıt 1
  • Gösterim Gösterim 552
Konu sahibi bu konuda soru soruyor. Sorusu ile ilgili bilgisi olanların yanıtlamasını bekliyor.

Chiqomt2

Üye
Üye
Mesaj
45
Çözümler
6
Beğeni
9
Puan
429
Ticaret Puanı
0
bu kodu eklediğimde hata alıyorum.
c++ İso gibi bir hataydı sanırım. gcc sürümünü yükseltmeden bunu kullanmanın bir yolu var mı ?
kodlarda hata var mı?
sistem:
Genişlet Daralt Kopyala
#ifdef ENABLE_EXTENDING_COSTUME_TIME
                            case 84014:
                            case 84015:
                            case 84016:
                                {
                                    LPITEM item2;

                                    if (!IsValidItemPosition(DestCell) || !(item2 = GetItem(DestCell)))
                                        return false;

                                    if (item2->IsExchanging() || item2->IsEquipped())
                                        return false;

                                    if (item2->GetType() != ITEM_COSTUME)
                                    {
                                        ChatPacket(CHAT_TYPE_INFO, LC_TEXT("Sadece kostumlerin suresini uzatabilirsiniz."));
                                        return false;
                                    }
                                    if (!(item2->GetSubType() == COSTUME_BODY || item2->GetSubType() == COSTUME_HAIR))
                                    {
                                        ChatPacket(CHAT_TYPE_INFO, LC_TEXT("Sadece kostumlerin suresini uzatabilirsiniz."));
                                        return false;
                                    }
                                    /* macros */
                                    auto day = 60 * 60 * 24;
                                    auto limit_time = day * 365;//one year limit.
                                    auto existing_duration = item2->GetSocket(0);
                                    auto additional_duration = item->GetValue(0) * day;
                                    auto new_duration = existing_duration + additional_duration;
                                    /* macros */
                                    if ((existing_duration == 0) || (new_duration - time(0) >= limit_time))
                                    {
                                        ChatPacket(CHAT_TYPE_INFO, LC_TEXT("Bu esyaya daha fazla sure eklenemez."));
                                        return false;
                                    }
                                    ITEM_MANAGER::instance().RemoveItem(item);
                                    ChatPacket(CHAT_TYPE_INFO, LC_TEXT("Kostumunuze sure eklendi."));
                                    item2->SetSocket(0, new_duration);
                                }
                                break;
#endif

hata:
Genişlet Daralt Kopyala
char_item.cpp: In member function 'bool CHARACTER::IsEmptyItemGrid(TItemPos, BYTE, int) const':
char_item.cpp:654: warning: comparison between signed and unsigned integer expressions
char_item.cpp:692: warning: comparison between signed and unsigned integer expressions
char_item.cpp:727: warning: comparison between signed and unsigned integer expressions
char_item.cpp:762: warning: comparison between signed and unsigned integer expressions
char_item.cpp:797: warning: comparison between signed and unsigned integer expressions
char_item.cpp:832: warning: comparison between signed and unsigned integer expressions
char_item.cpp:867: warning: comparison between signed and unsigned integer expressions
char_item.cpp:881: warning: comparison between signed and unsigned integer expressions
char_item.cpp:900: warning: comparison between signed and unsigned integer expressions
char_item.cpp:930: warning: comparison between signed and unsigned integer expressions
char_item.cpp: In member function 'bool CHARACTER::UseItemEx(CItem*, TItemPos)':
char_item.cpp:4473: error: ISO C++ forbids declaration of 'day' with no type
char_item.cpp:4474: error: ISO C++ forbids declaration of 'limit_time' with no type
char_item.cpp:4475: error: ISO C++ forbids declaration of 'existing_duration' with no type
char_item.cpp:4476: error: ISO C++ forbids declaration of 'additional_duration' with no type
char_item.cpp:4477: error: ISO C++ forbids declaration of 'new_duration' with no type
 
Üst