You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MAKE plugins make[1]: Entering directory '/home/joker/Documentos/Hercules-stable/src/plugins' PLUGIN sample PLUGIN db2sql PLUGIN HPMHooking_char PLUGIN HPMHooking_login PLUGIN HPMHooking_map CC hBG.c hBG.c: In function ‘hBG_send_hp_area’: hBG.c:426:24: error: ‘const struct s_packet_db’ has no member named ‘len’ clif->send(buf, packet->len, &sd->bl, BG_AREA_WOS); ^~ In file included from hBG.c:31: hBG.c: In function ‘hBG_send_hp_single’: hBG.c:446:22: error: ‘const struct s_packet_db’ has no member named ‘len’ WFIFOHEAD(fd, packet->len); ^~ ../common/socket.h:44:50: note: in definition of macro ‘WFIFOHEAD’ #define WFIFOHEAD(fd, size) sockt->wfifohead(fd, size) ^~~~ In file included from hBG.c:31: hBG.c:458:21: error: ‘const struct s_packet_db’ has no member named ‘len’ WFIFOSET(fd, packet->len); ^~ ../common/socket.h:72:49: note: in definition of macro ‘WFIFOSET’ #define WFIFOSET(fd, len) (sockt->wfifoset(fd, len, true)) ^~~ In file included from hBG.c:31: hBG.c: In function ‘hBG_send_guild_info’: hBG.c:480:22: error: ‘const struct s_packet_db’ has no member named ‘len’ WFIFOHEAD(fd, packet->len); ^~ ../common/socket.h:44:50: note: in definition of macro ‘WFIFOHEAD’ #define WFIFOHEAD(fd, size) sockt->wfifohead(fd, size) ^~~~ In file included from hBG.c:31: hBG.c:489:22: error: ‘const struct s_packet_db’ has no member named ‘len’ WFIFOSET(fd, packet->len); ^~ ../common/socket.h:72:49: note: in definition of macro ‘WFIFOSET’ #define WFIFOSET(fd, len) (sockt->wfifoset(fd, len, true)) ^~~ In file included from hBG.c:31: hBG.c: In function ‘hBG_guild_window_info’: hBG.c:554:22: error: ‘const struct s_packet_db’ has no member named ‘len’ WFIFOHEAD(fd, packet->len); // Hardcoded Length ^~ ../common/socket.h:44:50: note: in definition of macro ‘WFIFOHEAD’ #define WFIFOHEAD(fd, size) sockt->wfifohead(fd, size) ^~~~ In file included from hBG.c:31: hBG.c:573:21: error: ‘const struct s_packet_db’ has no member named ‘len’ WFIFOSET(fd, packet->len); ^~ ../common/socket.h:72:49: note: in definition of macro ‘WFIFOSET’ #define WFIFOSET(fd, len) (sockt->wfifoset(fd, len, true)) ^~~ hBG.c: In function ‘hBG_send_leave_single’: hBG.c:678:24: error: ‘const struct s_packet_db’ has no member named ‘len’ clif->send(buf, packet->len, &sd->bl, SELF); ^~ In file included from hBG.c:31: hBG.c: In function ‘hBG_send_expulsion’: hBG.c:740:22: error: ‘const struct s_packet_db’ has no member named ‘len’ WFIFOHEAD(fd, packet->len); ^~ ../common/socket.h:44:50: note: in definition of macro ‘WFIFOHEAD’ #define WFIFOHEAD(fd, size) sockt->wfifohead(fd, size) ^~~~ In file included from hBG.c:31: hBG.c:745:21: error: ‘const struct s_packet_db’ has no member named ‘len’ WFIFOSET(fd, packet->len); ^~ ../common/socket.h:72:49: note: in definition of macro ‘WFIFOSET’ #define WFIFOSET(fd, len) (sockt->wfifoset(fd, len, true)) ^~~ In file included from hBG.c:31: hBG.c: In function ‘hBG_update_score_single’: hBG.c:770:22: error: ‘const struct s_packet_db’ has no member named ‘len’ WFIFOHEAD(fd, packet->len); ^~ ../common/socket.h:44:50: note: in definition of macro ‘WFIFOHEAD’ #define WFIFOHEAD(fd, size) sockt->wfifohead(fd, size) ^~~~ In file included from hBG.c:31: hBG.c:782:21: error: ‘const struct s_packet_db’ has no member named ‘len’ WFIFOSET(fd, packet->len); ^~ ../common/socket.h:72:49: note: in definition of macro ‘WFIFOSET’ #define WFIFOSET(fd, len) (sockt->wfifoset(fd, len, true)) ^~~ hBG.c: In function ‘hBG_update_score_team’: hBG.c:816:25: error: ‘const struct s_packet_db’ has no member named ‘len’ clif->send(buf, packet->len, &sd->bl, SELF); ^~ hBG.c: In function ‘hBG_addflooritem_area’: hBG.c:1950:13: error: too few arguments to function ‘map->addflooritem’ count += (map->addflooritem(bl, &item_tmp, 1, m, mx, my, 0, 0, 0, 4) != 0) ? 1 : 0; ^~~ hBG.c: In function ‘atcommand_reportafk’: hBG.c:2148:20: error: too few arguments to function ‘map->nick2sd’ else if ((pl_sd = map->nick2sd(message)) == NULL) ^~~ hBG.c:2138:31: warning: unused variable ‘hBGsd’ [-Wunused-variable] struct hBG_map_session_data *hBGsd = NULL; ^~~~~ hBG.c: In function ‘atcommand_leader’: hBG.c:2196:20: error: too few arguments to function ‘map->nick2sd’ else if ((pl_sd = map->nick2sd(message)) == NULL) ^~~ hBG.c:2182:31: warning: unused variable ‘hBGsd’ [-Wunused-variable] struct hBG_map_session_data *hBGsd = NULL; ^~~~~ hBG.c: In function ‘buildin_hBG_monster_set_team’: hBG.c:3146:8: error: ‘struct clif_interface’ has no member named ‘charnameack’; did you mean ‘chatname_ack’? clif->charnameack(0, &md->bl); ^~~~~~~~~~~ chatname_ack hBG.c: In function ‘skillnotok_pre’: hBG.c:3753:4: error: too few arguments to function ‘clif->skill_fail’ clif->skill_fail((*sd), *skill_id, USESKILL_FAIL_SKILLINTERVAL, 0); ^~~~ hBG.c: In function ‘status_get_guild_id_pre’: hBG.c:3874:31: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] && (bg_id = bg->team_get_id((struct block_list *)*bl)) > 0 ^ hBG.c: In function ‘status_get_emblem_id_pre’: hBG.c:3895:31: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] && (bg_id = bg->team_get_id((struct block_list *)(*bl))) > 0 ^ hBG.c: At top level: hBG.c:3942:43: error: unknown type name ‘clr_type’; did you mean ‘sc_type’? int unit_free_pre(struct block_list **bl, clr_type *clrtype) ^~~~~~~~ sc_type hBG.c: In function ‘clif_sendbgemblem_area_overloading’: hBG.c:4206:24: error: ‘const struct s_packet_db’ has no member named ‘len’ clif->send(buf, packet->len, &sd->bl, AREA); ^~ In file included from hBG.c:31: hBG.c: In function ‘clif_sendbgemblem_single_overloading’: hBG.c:4221:21: error: ‘const struct s_packet_db’ has no member named ‘len’ WFIFOSET(fd, packet->len); ^~ ../common/socket.h:72:49: note: in definition of macro ‘WFIFOSET’ #define WFIFOSET(fd, len) (sockt->wfifoset(fd, len, true)) ^~~ hBG.c: In function ‘char_bgstats_tosql’: hBG.c:4255:4: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘unsigned int’ [-Wformat=] "REPLACE INTO char_bg_stats(" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ hBG.c:4288:4: pstats.best_damage, pstats.total_damage_done, pstats.total_damage_received, ~~~~~~~~~~~~~~~~~~ hBG.c:4273:7: note: format string is defined here "'%d','%u','%u'," ~^ %d In file included from hBG.c:61: hBG.c: In function ‘plugin_init’: hBG.c:4587:26: error: ‘unit_free_pre’ undeclared (first use in this function) addHookPre(unit, free, unit_free_pre); ^~~~~~~~~~~~~ ../plugins/HPMHooking.h:53:57: note: in definition of macro ‘addHookPre’ (void)((HPMHOOK_pre_ ## ifname ## _ ## funcname)0 == (hook)), \ ^~~~ hBG.c:4587:26: note: each undeclared identifier is reported only once for each function it appears in addHookPre(unit, free, unit_free_pre); ^~~~~~~~~~~~~ ../plugins/HPMHooking.h:53:57: note: in definition of macro ‘addHookPre’ (void)((HPMHOOK_pre_ ## ifname ## _ ## funcname)0 == (hook)), \ ^~~~ ../plugins/HPMHooking.h:53:63: warning: left-hand operand of comma expression has no effect [-Wunused-value] (void)((HPMHOOK_pre_ ## ifname ## _ ## funcname)0 == (hook)), \ ^ hBG.c:4587:3: note: in expansion of macro ‘addHookPre’ addHookPre(unit, free, unit_free_pre); ^~~~~~~~~~ make[1]: *** [Makefile:106: ../../plugins/hBG.so] Error 1
The text was updated successfully, but these errors were encountered:
when i add plugin and compile server.
MAKE plugins make[1]: Entering directory '/home/joker/Documentos/Hercules-stable/src/plugins' PLUGIN sample PLUGIN db2sql PLUGIN HPMHooking_char PLUGIN HPMHooking_login PLUGIN HPMHooking_map CC hBG.c hBG.c: In function ‘hBG_send_hp_area’: hBG.c:426:24: error: ‘const struct s_packet_db’ has no member named ‘len’ clif->send(buf, packet->len, &sd->bl, BG_AREA_WOS); ^~ In file included from hBG.c:31: hBG.c: In function ‘hBG_send_hp_single’: hBG.c:446:22: error: ‘const struct s_packet_db’ has no member named ‘len’ WFIFOHEAD(fd, packet->len); ^~ ../common/socket.h:44:50: note: in definition of macro ‘WFIFOHEAD’ #define WFIFOHEAD(fd, size) sockt->wfifohead(fd, size) ^~~~ In file included from hBG.c:31: hBG.c:458:21: error: ‘const struct s_packet_db’ has no member named ‘len’ WFIFOSET(fd, packet->len); ^~ ../common/socket.h:72:49: note: in definition of macro ‘WFIFOSET’ #define WFIFOSET(fd, len) (sockt->wfifoset(fd, len, true)) ^~~ In file included from hBG.c:31: hBG.c: In function ‘hBG_send_guild_info’: hBG.c:480:22: error: ‘const struct s_packet_db’ has no member named ‘len’ WFIFOHEAD(fd, packet->len); ^~ ../common/socket.h:44:50: note: in definition of macro ‘WFIFOHEAD’ #define WFIFOHEAD(fd, size) sockt->wfifohead(fd, size) ^~~~ In file included from hBG.c:31: hBG.c:489:22: error: ‘const struct s_packet_db’ has no member named ‘len’ WFIFOSET(fd, packet->len); ^~ ../common/socket.h:72:49: note: in definition of macro ‘WFIFOSET’ #define WFIFOSET(fd, len) (sockt->wfifoset(fd, len, true)) ^~~ In file included from hBG.c:31: hBG.c: In function ‘hBG_guild_window_info’: hBG.c:554:22: error: ‘const struct s_packet_db’ has no member named ‘len’ WFIFOHEAD(fd, packet->len); // Hardcoded Length ^~ ../common/socket.h:44:50: note: in definition of macro ‘WFIFOHEAD’ #define WFIFOHEAD(fd, size) sockt->wfifohead(fd, size) ^~~~ In file included from hBG.c:31: hBG.c:573:21: error: ‘const struct s_packet_db’ has no member named ‘len’ WFIFOSET(fd, packet->len); ^~ ../common/socket.h:72:49: note: in definition of macro ‘WFIFOSET’ #define WFIFOSET(fd, len) (sockt->wfifoset(fd, len, true)) ^~~ hBG.c: In function ‘hBG_send_leave_single’: hBG.c:678:24: error: ‘const struct s_packet_db’ has no member named ‘len’ clif->send(buf, packet->len, &sd->bl, SELF); ^~ In file included from hBG.c:31: hBG.c: In function ‘hBG_send_expulsion’: hBG.c:740:22: error: ‘const struct s_packet_db’ has no member named ‘len’ WFIFOHEAD(fd, packet->len); ^~ ../common/socket.h:44:50: note: in definition of macro ‘WFIFOHEAD’ #define WFIFOHEAD(fd, size) sockt->wfifohead(fd, size) ^~~~ In file included from hBG.c:31: hBG.c:745:21: error: ‘const struct s_packet_db’ has no member named ‘len’ WFIFOSET(fd, packet->len); ^~ ../common/socket.h:72:49: note: in definition of macro ‘WFIFOSET’ #define WFIFOSET(fd, len) (sockt->wfifoset(fd, len, true)) ^~~ In file included from hBG.c:31: hBG.c: In function ‘hBG_update_score_single’: hBG.c:770:22: error: ‘const struct s_packet_db’ has no member named ‘len’ WFIFOHEAD(fd, packet->len); ^~ ../common/socket.h:44:50: note: in definition of macro ‘WFIFOHEAD’ #define WFIFOHEAD(fd, size) sockt->wfifohead(fd, size) ^~~~ In file included from hBG.c:31: hBG.c:782:21: error: ‘const struct s_packet_db’ has no member named ‘len’ WFIFOSET(fd, packet->len); ^~ ../common/socket.h:72:49: note: in definition of macro ‘WFIFOSET’ #define WFIFOSET(fd, len) (sockt->wfifoset(fd, len, true)) ^~~ hBG.c: In function ‘hBG_update_score_team’: hBG.c:816:25: error: ‘const struct s_packet_db’ has no member named ‘len’ clif->send(buf, packet->len, &sd->bl, SELF); ^~ hBG.c: In function ‘hBG_addflooritem_area’: hBG.c:1950:13: error: too few arguments to function ‘map->addflooritem’ count += (map->addflooritem(bl, &item_tmp, 1, m, mx, my, 0, 0, 0, 4) != 0) ? 1 : 0; ^~~ hBG.c: In function ‘atcommand_reportafk’: hBG.c:2148:20: error: too few arguments to function ‘map->nick2sd’ else if ((pl_sd = map->nick2sd(message)) == NULL) ^~~ hBG.c:2138:31: warning: unused variable ‘hBGsd’ [-Wunused-variable] struct hBG_map_session_data *hBGsd = NULL; ^~~~~ hBG.c: In function ‘atcommand_leader’: hBG.c:2196:20: error: too few arguments to function ‘map->nick2sd’ else if ((pl_sd = map->nick2sd(message)) == NULL) ^~~ hBG.c:2182:31: warning: unused variable ‘hBGsd’ [-Wunused-variable] struct hBG_map_session_data *hBGsd = NULL; ^~~~~ hBG.c: In function ‘buildin_hBG_monster_set_team’: hBG.c:3146:8: error: ‘struct clif_interface’ has no member named ‘charnameack’; did you mean ‘chatname_ack’? clif->charnameack(0, &md->bl); ^~~~~~~~~~~ chatname_ack hBG.c: In function ‘skillnotok_pre’: hBG.c:3753:4: error: too few arguments to function ‘clif->skill_fail’ clif->skill_fail((*sd), *skill_id, USESKILL_FAIL_SKILLINTERVAL, 0); ^~~~ hBG.c: In function ‘status_get_guild_id_pre’: hBG.c:3874:31: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] && (bg_id = bg->team_get_id((struct block_list *)*bl)) > 0 ^ hBG.c: In function ‘status_get_emblem_id_pre’: hBG.c:3895:31: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] && (bg_id = bg->team_get_id((struct block_list *)(*bl))) > 0 ^ hBG.c: At top level: hBG.c:3942:43: error: unknown type name ‘clr_type’; did you mean ‘sc_type’? int unit_free_pre(struct block_list **bl, clr_type *clrtype) ^~~~~~~~ sc_type hBG.c: In function ‘clif_sendbgemblem_area_overloading’: hBG.c:4206:24: error: ‘const struct s_packet_db’ has no member named ‘len’ clif->send(buf, packet->len, &sd->bl, AREA); ^~ In file included from hBG.c:31: hBG.c: In function ‘clif_sendbgemblem_single_overloading’: hBG.c:4221:21: error: ‘const struct s_packet_db’ has no member named ‘len’ WFIFOSET(fd, packet->len); ^~ ../common/socket.h:72:49: note: in definition of macro ‘WFIFOSET’ #define WFIFOSET(fd, len) (sockt->wfifoset(fd, len, true)) ^~~ hBG.c: In function ‘char_bgstats_tosql’: hBG.c:4255:4: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘unsigned int’ [-Wformat=] "REPLACE INTO
char_bg_stats(" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ hBG.c:4288:4: pstats.best_damage, pstats.total_damage_done, pstats.total_damage_received, ~~~~~~~~~~~~~~~~~~ hBG.c:4273:7: note: format string is defined here "'%d','%u','%u'," ~^ %d In file included from hBG.c:61: hBG.c: In function ‘plugin_init’: hBG.c:4587:26: error: ‘unit_free_pre’ undeclared (first use in this function) addHookPre(unit, free, unit_free_pre); ^~~~~~~~~~~~~ ../plugins/HPMHooking.h:53:57: note: in definition of macro ‘addHookPre’ (void)((HPMHOOK_pre_ ## ifname ## _ ## funcname)0 == (hook)), \ ^~~~ hBG.c:4587:26: note: each undeclared identifier is reported only once for each function it appears in addHookPre(unit, free, unit_free_pre); ^~~~~~~~~~~~~ ../plugins/HPMHooking.h:53:57: note: in definition of macro ‘addHookPre’ (void)((HPMHOOK_pre_ ## ifname ## _ ## funcname)0 == (hook)), \ ^~~~ ../plugins/HPMHooking.h:53:63: warning: left-hand operand of comma expression has no effect [-Wunused-value] (void)((HPMHOOK_pre_ ## ifname ## _ ## funcname)0 == (hook)), \ ^ hBG.c:4587:3: note: in expansion of macro ‘addHookPre’ addHookPre(unit, free, unit_free_pre); ^~~~~~~~~~ make[1]: *** [Makefile:106: ../../plugins/hBG.so] Error 1
The text was updated successfully, but these errors were encountered: