Hello, I have a problem with the source code, extended vending system 19.
CC status.c
CC storage.c
CC trade.c
CC unit.c
CC vending.c
vending.c: In function ‘vending_vendinglistreq’:
vending.c:96:4: warning: implicit declaration of function ‘clif_colormes’ [-Wimp licit-function-declaration]
clif_colormes(sd,color_table[COLOR_CYAN],output);
^
vending.c:112:6: warning: declaration of ‘vending_purchasereq’ shadows a global declaration [-Wshadow]
void vending_purchasereq(struct map_session_data* sd, int aid, int uid, const u
^
In file included from vending.c:13:0:
vending.h:33:6: note: shadowed declaration is here
void vending_purchasereq(struct map_session_data* sd, int aid, int uid, const u
^
vending.c: In function ‘vending_purchasereq’:
vending.c:112:51: warning: declaration of ‘sd’ shadows a parameter [-Wshadow]
void vending_purchasereq(struct map_session_data* sd, int aid, int uid, const u
^
vending.c:72:54: note: shadowed declaration is here
void vending_vendinglistreq(struct map_session_data* sd, int id)
^
vending.c:117:27: warning: declaration of ‘vsd’ shadows a previous local [-Wshad ow]
struct map_session_data* vsd = map_id2sd(aid);
^
vending.c:74:27: note: shadowed declaration is here
struct map_session_data* vsd;
^
vending.c:187:19: error: ‘struct mmo_charstatus’ has no member named ‘inventory’
if(sd->status.inventory[k].nameid == vsd->vend_loot)
^
vending.c:188:31: error: ‘struct mmo_charstatus’ has no member named ‘inventory’
loot_count += sd->status.inventory[k].amount;
^
vending.c:268:18: error: ‘struct mmo_charstatus’ has no member named ‘inventory’
if(sd->status.inventory.nameid == vsd->vend_loot)
^
vending.c:271:24: error: ‘struct mmo_charstatus’ has no member named ‘inventory’
item = &sd->status.inventory;
^
In file included from vending.c:9:0:
vending.c:314:53: error: ‘struct mmo_charstatus’ has no member named ‘cart’
const char *item_name = itemdb_jname(vsd->status.cart[idx].nameid);
^
itemdb.h:887:39: note: in definition of macro ‘itemdb_jname’
#define itemdb_jname(n) itemdb_search(n)->jname
^
vending.c:327:3: warning: implicit declaration of function ‘clif_disp_onlyself’ [-Wimplicit-function-declaration]
clif_disp_onlyself(vsd,temp,strlen(temp));
^
vending.c: In function ‘vending_vendinglistreq’:
vending.c:374:6: warning: declaration of ‘vending_openvending’ shadows a global declaration [-Wshadow]
int8 vending_openvending(struct map_session_data* sd, const char* message, cons
^
In file included from vending.c:13:0:
vending.h:31:6: note: shadowed declaration is here
int8 vending_openvending(struct map_session_data* sd, const char* message, cons
^
vending.c: In function ‘vending_openvending’:
vending.c:374:51: warning: declaration of ‘sd’ shadows a parameter [-Wshadow]
int8 vending_openvending(struct map_session_data* sd, const char* message, cons
^
vending.c:72:54: note: shadowed declaration is here
void vending_vendinglistreq(struct map_session_data* sd, int id)
^
vending.c:448:3: error: ‘vendings_db’ undeclared (first use in this function)
vendings_db, sd->vender_id, sd->status.account_id, sd->status.char_id, sd->st
^
vending.c:448:3: note: each undeclared identifier is reported only once for each function it appears in
vending.c: In function ‘vending_vendinglistreq’:
vending.c:477:6: warning: declaration of ‘vending_search’ shadows a global decla ration [-Wshadow]
bool vending_search(struct map_session_data* sd, unsigned short nameid)
^
In file included from vending.c:13:0:
vending.h:34:6: note: shadowed declaration is here
bool vending_search(struct map_session_data* sd, unsigned short nameid);
^
vending.c: In function ‘vending_search’:
vending.c:477:46: warning: declaration of ‘sd’ shadows a parameter [-Wshadow]
bool vending_search(struct map_session_data* sd, unsigned short nameid)
^
vending.c:72:54: note: shadowed declaration is here
void vending_vendinglistreq(struct map_session_data* sd, int id)
^
vending.c: In function ‘vending_vendinglistreq’:
vending.c:499:6: warning: declaration of ‘vending_searchall’ shadows a global de claration [-Wshadow]
bool vending_searchall(struct map_session_data* sd, const struct s_search_store
^
In file included from vending.c:13:0:
vending.h:35:6: note: shadowed declaration is here
bool vending_searchall(struct map_session_data* sd, const struct s_search_store
^
vending.c: In function ‘vending_searchall’:
vending.c:499:49: warning: declaration of ‘sd’ shadows a parameter [-Wshadow]
bool vending_searchall(struct map_session_data* sd, const struct s_search_store
^
vending.c:72:54: note: shadowed declaration is here
void vending_vendinglistreq(struct map_session_data* sd, int id)
^
vending.c: In function ‘vending_vendinglistreq’:
vending.c:553:6: warning: declaration of ‘vending_reopen’ shadows a global decla ration [-Wshadow]
void vending_reopen( struct map_session_data* sd )
^
In file included from vending.c:13:0:
vending.h:29:6: note: shadowed declaration is here
void vending_reopen( struct map_session_data* sd );
^
vending.c: In function ‘vending_reopen’:
vending.c:553:47: warning: declaration of ‘sd’ shadows a parameter [-Wshadow]
void vending_reopen( struct map_session_data* sd )
^
vending.c:72:54: note: shadowed declaration is here
void vending_vendinglistreq(struct map_session_data* sd, int id)
^
vending.c: In function ‘vending_vendinglistreq’:
vending.c:634:6: warning: declaration of ‘do_init_vending_autotrade’ shadows a g lobal declaration [-Wshadow]
void do_init_vending_autotrade(void)
^
In file included from vending.c:13:0:
vending.h:27:6: note: shadowed declaration is here
void do_init_vending_autotrade( void );
^
vending.c:748:13: error: invalid storage class for function ‘vending_autotrader_ remove’
static void vending_autotrader_remove(struct s_autotrader *at, bool remove) {
^
vending.c:748:13: warning: declaration of ‘vending_autotrader_remove’ shadows a global declaration [-Wshadow]
vending.c:25:13: note: shadowed declaration is here
static void vending_autotrader_remove(struct s_autotrader *at, bool remove);
^
vending.c:767:12: error: invalid storage class for function ‘vending_autotrader_ free’
static int vending_autotrader_free(DBKey key, DBData *data, va_list ap) {
^
vending.c:767:12: warning: declaration of ‘vending_autotrader_free’ shadows a gl obal declaration [-Wshadow]
vending.c:26:12: note: shadowed declaration is here
static int vending_autotrader_free(DBKey key, DBData *data, va_list ap);
^
vending.c:778:6: warning: declaration of ‘do_final_vending’ shadows a global dec laration [-Wshadow]
void do_final_vending(void)
^
In file included from vending.c:13:0:
vending.h:25:6: note: shadowed declaration is here
void do_final_vending(void);
^
vending.c:788:6: warning: declaration of ‘do_init_vending’ shadows a global decl aration [-Wshadow]
void do_init_vending(void)
^
In file included from vending.c:13:0:
vending.h:26:6: note: shadowed declaration is here
void do_init_vending(void);
^
vending.c:793:1: error: expected declaration or statement at end of input
}
^
vending.c: At top level:
vending.c:25:13: warning: ‘vending_autotrader_remove’ used but never defined
static void vending_autotrader_remove(struct s_autotrader *at, bool remove);
^
vending.c:26:12: warning: ‘vending_autotrader_free’ used but never defined
static int vending_autotrader_free(DBKey key, DBData *data, va_list ap);
^
make[1]: ** [obj/vending.o] Erro 1
make[1]: Saindo do diretório `/home/emulador/src/map'
make: ** [map] Erro 2
Question
Revoltz
Hello, I have a problem with the source code, extended vending system 19.
CC status.c
CC storage.c
CC trade.c
CC unit.c
CC vending.c
vending.c: In function ‘vending_vendinglistreq’:
vending.c:96:4: warning: implicit declaration of function ‘clif_colormes’ [-Wimp licit-function-declaration]
clif_colormes(sd,color_table[COLOR_CYAN],output);
^
vending.c:112:6: warning: declaration of ‘vending_purchasereq’ shadows a global declaration [-Wshadow]
void vending_purchasereq(struct map_session_data* sd, int aid, int uid, const u
^
In file included from vending.c:13:0:
vending.h:33:6: note: shadowed declaration is here
void vending_purchasereq(struct map_session_data* sd, int aid, int uid, const u
^
vending.c: In function ‘vending_purchasereq’:
vending.c:112:51: warning: declaration of ‘sd’ shadows a parameter [-Wshadow]
void vending_purchasereq(struct map_session_data* sd, int aid, int uid, const u
^
vending.c:72:54: note: shadowed declaration is here
void vending_vendinglistreq(struct map_session_data* sd, int id)
^
vending.c:117:27: warning: declaration of ‘vsd’ shadows a previous local [-Wshad ow]
struct map_session_data* vsd = map_id2sd(aid);
^
vending.c:74:27: note: shadowed declaration is here
struct map_session_data* vsd;
^
vending.c:187:19: error: ‘struct mmo_charstatus’ has no member named ‘inventory’
if(sd->status.inventory[k].nameid == vsd->vend_loot)
^
vending.c:188:31: error: ‘struct mmo_charstatus’ has no member named ‘inventory’
loot_count += sd->status.inventory[k].amount;
^
vending.c:268:18: error: ‘struct mmo_charstatus’ has no member named ‘inventory’
if(sd->status.inventory.nameid == vsd->vend_loot)
^
vending.c:271:24: error: ‘struct mmo_charstatus’ has no member named ‘inventory’
item = &sd->status.inventory;
^
In file included from vending.c:9:0:
vending.c:314:53: error: ‘struct mmo_charstatus’ has no member named ‘cart’
const char *item_name = itemdb_jname(vsd->status.cart[idx].nameid);
^
itemdb.h:887:39: note: in definition of macro ‘itemdb_jname’
#define itemdb_jname(n) itemdb_search(n)->jname
^
vending.c:327:3: warning: implicit declaration of function ‘clif_disp_onlyself’ [-Wimplicit-function-declaration]
clif_disp_onlyself(vsd,temp,strlen(temp));
^
vending.c: In function ‘vending_vendinglistreq’:
vending.c:374:6: warning: declaration of ‘vending_openvending’ shadows a global declaration [-Wshadow]
int8 vending_openvending(struct map_session_data* sd, const char* message, cons
^
In file included from vending.c:13:0:
vending.h:31:6: note: shadowed declaration is here
int8 vending_openvending(struct map_session_data* sd, const char* message, cons
^
vending.c: In function ‘vending_openvending’:
vending.c:374:51: warning: declaration of ‘sd’ shadows a parameter [-Wshadow]
int8 vending_openvending(struct map_session_data* sd, const char* message, cons
^
vending.c:72:54: note: shadowed declaration is here
void vending_vendinglistreq(struct map_session_data* sd, int id)
^
vending.c:448:3: error: ‘vendings_db’ undeclared (first use in this function)
vendings_db, sd->vender_id, sd->status.account_id, sd->status.char_id, sd->st
^
vending.c:448:3: note: each undeclared identifier is reported only once for each function it appears in
vending.c: In function ‘vending_vendinglistreq’:
vending.c:477:6: warning: declaration of ‘vending_search’ shadows a global decla ration [-Wshadow]
bool vending_search(struct map_session_data* sd, unsigned short nameid)
^
In file included from vending.c:13:0:
vending.h:34:6: note: shadowed declaration is here
bool vending_search(struct map_session_data* sd, unsigned short nameid);
^
vending.c: In function ‘vending_search’:
vending.c:477:46: warning: declaration of ‘sd’ shadows a parameter [-Wshadow]
bool vending_search(struct map_session_data* sd, unsigned short nameid)
^
vending.c:72:54: note: shadowed declaration is here
void vending_vendinglistreq(struct map_session_data* sd, int id)
^
vending.c: In function ‘vending_vendinglistreq’:
vending.c:499:6: warning: declaration of ‘vending_searchall’ shadows a global de claration [-Wshadow]
bool vending_searchall(struct map_session_data* sd, const struct s_search_store
^
In file included from vending.c:13:0:
vending.h:35:6: note: shadowed declaration is here
bool vending_searchall(struct map_session_data* sd, const struct s_search_store
^
vending.c: In function ‘vending_searchall’:
vending.c:499:49: warning: declaration of ‘sd’ shadows a parameter [-Wshadow]
bool vending_searchall(struct map_session_data* sd, const struct s_search_store
^
vending.c:72:54: note: shadowed declaration is here
void vending_vendinglistreq(struct map_session_data* sd, int id)
^
vending.c: In function ‘vending_vendinglistreq’:
vending.c:553:6: warning: declaration of ‘vending_reopen’ shadows a global decla ration [-Wshadow]
void vending_reopen( struct map_session_data* sd )
^
In file included from vending.c:13:0:
vending.h:29:6: note: shadowed declaration is here
void vending_reopen( struct map_session_data* sd );
^
vending.c: In function ‘vending_reopen’:
vending.c:553:47: warning: declaration of ‘sd’ shadows a parameter [-Wshadow]
void vending_reopen( struct map_session_data* sd )
^
vending.c:72:54: note: shadowed declaration is here
void vending_vendinglistreq(struct map_session_data* sd, int id)
^
vending.c: In function ‘vending_vendinglistreq’:
vending.c:634:6: warning: declaration of ‘do_init_vending_autotrade’ shadows a g lobal declaration [-Wshadow]
void do_init_vending_autotrade(void)
^
In file included from vending.c:13:0:
vending.h:27:6: note: shadowed declaration is here
void do_init_vending_autotrade( void );
^
vending.c:748:13: error: invalid storage class for function ‘vending_autotrader_ remove’
static void vending_autotrader_remove(struct s_autotrader *at, bool remove) {
^
vending.c:748:13: warning: declaration of ‘vending_autotrader_remove’ shadows a global declaration [-Wshadow]
vending.c:25:13: note: shadowed declaration is here
static void vending_autotrader_remove(struct s_autotrader *at, bool remove);
^
vending.c:767:12: error: invalid storage class for function ‘vending_autotrader_ free’
static int vending_autotrader_free(DBKey key, DBData *data, va_list ap) {
^
vending.c:767:12: warning: declaration of ‘vending_autotrader_free’ shadows a gl obal declaration [-Wshadow]
vending.c:26:12: note: shadowed declaration is here
static int vending_autotrader_free(DBKey key, DBData *data, va_list ap);
^
vending.c:778:6: warning: declaration of ‘do_final_vending’ shadows a global dec laration [-Wshadow]
void do_final_vending(void)
^
In file included from vending.c:13:0:
vending.h:25:6: note: shadowed declaration is here
void do_final_vending(void);
^
vending.c:788:6: warning: declaration of ‘do_init_vending’ shadows a global decl aration [-Wshadow]
void do_init_vending(void)
^
In file included from vending.c:13:0:
vending.h:26:6: note: shadowed declaration is here
void do_init_vending(void);
^
vending.c:793:1: error: expected declaration or statement at end of input
}
^
vending.c: At top level:
vending.c:25:13: warning: ‘vending_autotrader_remove’ used but never defined
static void vending_autotrader_remove(struct s_autotrader *at, bool remove);
^
vending.c:26:12: warning: ‘vending_autotrader_free’ used but never defined
static int vending_autotrader_free(DBKey key, DBData *data, va_list ap);
^
make[1]: ** [obj/vending.o] Erro 1
make[1]: Saindo do diretório `/home/emulador/src/map'
make: ** [map] Erro 2
The link used was this:
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.