[C++]Anunt item upgradat cu succes
- -DND-
-

- Mesaje: 1464
- Membru din: 22 Ian 2017, 16:40
- Server: Serverfiles By DnD
- Regat: Jinno
- Aprecieri: 116
- Mulţumiri: 2249
- Discord: Copiază ID
- Contact:
Salut , De ce imi da eroarea aceasta ?AndyOpris scrie:Salut , astazi va voi prezenta si oferii sistemul de anunt pe chat cand iti reuseste un item la +.
Poza:
Tutorial instalare:
Intram in common/service.h si adaugam:
#ifndef ENABLE_ANNOUNCEMENT_REFINE_SUCCES #define ENABLE_ANNOUNCEMENT_REFINE_SUCCES #define ENABLE_ANNOUNCEMENT_REFINE_SUCCES_MIN_LEVEL 7 // Anuntul incepe de la +7 pana la +9(modifica 7 de la cat vrei sa incepe anuntul) #endifIntram in game/char_item.cpp :
Cauta(sunt 2 locuri unde trebuie gasite, inlolcuiesti la ambele):ITEM_MANAGER::instance().RemoveItem(item, "REMOVE (REFINE SUCCESS)");Adauga sub:#ifdef ENABLE_ANNOUNCEMENT_REFINE_SUCCES //Start Configurare Anunt if (pkNewItem->GetRefineLevel() >= ENABLE_ANNOUNCEMENT_REFINE_SUCCES_MIN_LEVEL) { char szUpgradeAnnouncement[QUERY_MAX_LEN]; snprintf(szUpgradeAnnouncement, sizeof(szUpgradeAnnouncement), "|cff00ffec|H|h[METIN2A] |cffff9a00|H|h Jucatorul %s a upgradat itemul |cffffc700|H|h[%s]|h|r |cffff9a00|H|hcu succes!", GetName(), pkNewItem->GetName()); BroadcastNotice(szUpgradeAnnouncement); } //Stop Configurare Anunt #endifCompliem sursa si aia e.
../../common/service.h:17:7: warning: no newline at end of file
^Cgmake: *** Deleting file `OBJDIR/OXEvent.o'
gmake: *** [OBJDIR/OXEvent.o] Interrupt: 2
hokito95 scrie:alinut86,
gmake dep
gmake clean
gmake -j20
Aceiasi Problema
Aici Macar este Bn ?
#ifndef __INC_SERVICE_H__
#define __INC_SERVICE_H__
#define _IMPROVED_PACKET_ENCRYPTION_ // ÆÐŶ ¾ÏÈ£È °³¼±
//#define __AUCTION__
#define __PET_SYSTEM__
#define __MOB_DISAPPEAR_FAST__
#define __MOB_DISAPPEAR_FAST__VALUE 1 // Replaces the value 1, while the number of seconds to disappear after killing mobs their recommended is 1 second to leave because they still do the job.
#define __UDP_BLOCK__
#define __WEAPON_COSTUME_SYSTEM__
#define ENABLE_OFFLINE_SHOP_SYSTEM
#define NEW_PET_SYSTEM
#endif
#ifndef ENABLE_ANNOUNCEMENT_REFINE_SUCCES
#define ENABLE_ANNOUNCEMENT_REFINE_SUCCES
#define ENABLE_ANNOUNCEMENT_REFINE_SUCCES_MIN_LEVEL 7
#endif
- -DND-
-

- Mesaje: 1464
- Membru din: 22 Ian 2017, 16:40
- Server: Serverfiles By DnD
- Regat: Jinno
- Aprecieri: 116
- Mulţumiri: 2249
- Discord: Copiază ID
- Contact:
#ifndef __INC_SERVICE_H__
#define __INC_SERVICE_H__
#define _IMPROVED_PACKET_ENCRYPTION_ // ÆÐŶ ¾ÏÈ£È °³¼±
//#define __AUCTION__
#define __PET_SYSTEM__
#define __MOB_DISAPPEAR_FAST__
#define __MOB_DISAPPEAR_FAST__VALUE 1 // Replaces the value 1, while the number of seconds to disappear after killing mobs their recommended is 1 second to leave because they still do the job.
#define __UDP_BLOCK__
#define __WEAPON_COSTUME_SYSTEM__
#define ENABLE_OFFLINE_SHOP_SYSTEM
#define NEW_PET_SYSTEM
#ifndef ENABLE_ANNOUNCEMENT_REFINE_SUCCES
#define ENABLE_ANNOUNCEMENT_REFINE_SUCCES
#define ENABLE_ANNOUNCEMENT_REFINE_SUCCES_MIN_LEVEL 7
#endif
incearca asa !
#define __INC_SERVICE_H__
#define _IMPROVED_PACKET_ENCRYPTION_ // ÆÐŶ ¾ÏÈ£È °³¼±
//#define __AUCTION__
#define __PET_SYSTEM__
#define __MOB_DISAPPEAR_FAST__
#define __MOB_DISAPPEAR_FAST__VALUE 1 // Replaces the value 1, while the number of seconds to disappear after killing mobs their recommended is 1 second to leave because they still do the job.
#define __UDP_BLOCK__
#define __WEAPON_COSTUME_SYSTEM__
#define ENABLE_OFFLINE_SHOP_SYSTEM
#define NEW_PET_SYSTEM
#ifndef ENABLE_ANNOUNCEMENT_REFINE_SUCCES
#define ENABLE_ANNOUNCEMENT_REFINE_SUCCES
#define ENABLE_ANNOUNCEMENT_REFINE_SUCCES_MIN_LEVEL 7
#endif
incearca asa !
Functia asta este functionala nu ai aranjat tu corect functile
Ma dar tu vii peste tot cu vb de duhPongo scrie:Functia asta este functionala nu ai aranjat tu corect functile
-DND- scrie:#ifndef __INC_SERVICE_H__
#define __INC_SERVICE_H__
#define _IMPROVED_PACKET_ENCRYPTION_ // ÆÐŶ ¾ÏÈ£È °³¼±
//#define __AUCTION__
#define __PET_SYSTEM__
#define __MOB_DISAPPEAR_FAST__
#define __MOB_DISAPPEAR_FAST__VALUE 1 // Replaces the value 1, while the number of seconds to disappear after killing mobs their recommended is 1 second to leave because they still do the job.
#define __UDP_BLOCK__
#define __WEAPON_COSTUME_SYSTEM__
#define ENABLE_OFFLINE_SHOP_SYSTEM
#define NEW_PET_SYSTEM
#ifndef ENABLE_ANNOUNCEMENT_REFINE_SUCCES
#define ENABLE_ANNOUNCEMENT_REFINE_SUCCES
#define ENABLE_ANNOUNCEMENT_REFINE_SUCCES_MIN_LEVEL 7
#endif
incearca asa !
tot la fel :
../../common/service.h:16:7: warning: no newline at end of file
../../common/service.h:1:1: error: unterminated #ifndef
- -DND-
-

- Mesaje: 1464
- Membru din: 22 Ian 2017, 16:40
- Server: Serverfiles By DnD
- Regat: Jinno
- Aprecieri: 116
- Mulţumiri: 2249
- Discord: Copiază ID
- Contact:
alinut86 scrie:-DND- scrie:#ifndef __INC_SERVICE_H__
#define __INC_SERVICE_H__
#define _IMPROVED_PACKET_ENCRYPTION_ // ÆÐŶ ¾ÏÈ£È °³¼±
//#define __AUCTION__
#define __PET_SYSTEM__
#define __MOB_DISAPPEAR_FAST__
#define __MOB_DISAPPEAR_FAST__VALUE 1 // Replaces the value 1, while the number of seconds to disappear after killing mobs their recommended is 1 second to leave because they still do the job.
#define __UDP_BLOCK__
#define __WEAPON_COSTUME_SYSTEM__
#define ENABLE_OFFLINE_SHOP_SYSTEM
#define NEW_PET_SYSTEM
#ifndef ENABLE_ANNOUNCEMENT_REFINE_SUCCES
#define ENABLE_ANNOUNCEMENT_REFINE_SUCCES
#define ENABLE_ANNOUNCEMENT_REFINE_SUCCES_MIN_LEVEL 7
#endif
incearca asa !
tot la fel :
../../common/service.h:16:7: warning: no newline at end of file
../../common/service.h:1:1: error: unterminated #ifndef
ia vezi asa
Cod: Selectaţi tot
#ifndef __INC_SERVICE_H__
#define __INC_SERVICE_H__
#define _IMPROVED_PACKET_ENCRYPTION_ // ÆÐŶ ¾ÏÈ£È °³¼±
//#define __AUCTION__
#define __PET_SYSTEM__
#define __MOB_DISAPPEAR_FAST__
#define __MOB_DISAPPEAR_FAST__VALUE 1 // Replaces the value 1, while the number of seconds to disappear after killing mobs their recommended is 1 second to leave because they still do the job.
#define __UDP_BLOCK__
#define __WEAPON_COSTUME_SYSTEM__
#define ENABLE_OFFLINE_SHOP_SYSTEM
#define NEW_PET_SYSTEM
#ifndef ENABLE_ANNOUNCEMENT_REFINE_SUCCES
#define ENABLE_ANNOUNCEMENT_REFINE_SUCCES
#define ENABLE_ANNOUNCEMENT_REFINE_SUCCES_MIN_LEVEL 7
#endif
- -DND-
-

- Mesaje: 1464
- Membru din: 22 Ian 2017, 16:40
- Server: Serverfiles By DnD
- Regat: Jinno
- Aprecieri: 116
- Mulţumiri: 2249
- Discord: Copiază ID
- Contact:
alinut86 scrie:-DND- scrie:#ifndef __INC_SERVICE_H__
#define __INC_SERVICE_H__
#define _IMPROVED_PACKET_ENCRYPTION_ // ÆÐŶ ¾ÏÈ£È °³¼±
//#define __AUCTION__
#define __PET_SYSTEM__
#define __MOB_DISAPPEAR_FAST__
#define __MOB_DISAPPEAR_FAST__VALUE 1 // Replaces the value 1, while the number of seconds to disappear after killing mobs their recommended is 1 second to leave because they still do the job.
#define __UDP_BLOCK__
#define __WEAPON_COSTUME_SYSTEM__
#define ENABLE_OFFLINE_SHOP_SYSTEM
#define NEW_PET_SYSTEM
#ifndef ENABLE_ANNOUNCEMENT_REFINE_SUCCES
#define ENABLE_ANNOUNCEMENT_REFINE_SUCCES
#define ENABLE_ANNOUNCEMENT_REFINE_SUCCES_MIN_LEVEL 7
#endif
incearca asa !
tot la fel :
../../common/service.h:16:7: warning: no newline at end of file
../../common/service.h:1:1: error: unterminated #ifndef
ai rezolvat pana la urma cu ultimul meu citat inainte de asta?
-
- Informaţie
-
Cine este conectat
Utilizatori ce ce navighează pe acest forum: Dragoş Florin și 58 vizitatori

Tutorial instalare:

de