Issue information

Issue ID
#7856
Status
Working as Intended
Severity
None
Started
sevenzz23
Nov 26, 2013 5:38
Last Post
Ind
Nov 26, 2013 7:06
Confirmation
N/A

sevenzz23 - Nov 26, 2013 5:38

[code=:0] 1>..\src\plugins\afk.c(254): warning C4013: 'ACMD_A' undefined; assuming extern returning int 1>..\src\plugins\afk.c(254): warning C4047: 'function' : 'bool (__cdecl *)(const int,map_session_data *,const char *,const char *,AtCommandInfo *)' differs in levels of indirection from 'int' 1>..\src\plugins\afk.c(254): warning C4024: 'function through pointer' : different types for formal and actual parameter 2 [/code]

Jeffery - Nov 26, 2013 6:00

[url="https://github.com/HerculesWS/Hercules/commit/a724476174cd691704a51f60e540513bae743432"]https://github.com/HerculesWS/Hercules/commit/a724476174cd691704a51f60e540513bae743432[/url]

sevenzz23 - Nov 26, 2013 6:01

I rollback my rev to 13306, no error at all.. I think its on rev, I dont know what rev. cost the error..

Ind - Nov 26, 2013 6:21

As Jeffery points out ACMD_A was dropped, show me your afk.c line 254 and I'll tell you how it should be like

sevenzz23 - Nov 26, 2013 6:24

cant update my server because of [url="http://herc.ws/board/tracker/issue-7855-error-compiling-vb-2013/"]http://herc.ws/board/tracker/issue-7855-error-compiling-vb-2013/[/url]. In what revision it was dropped? so that I can update my server upto that rev.
[code=:253] if( HPMi->addCommand != NULL ) {//link our '@sample' command HPMi->addCommand("afk",ACMD_A(afk)); [/code]

Ind - Nov 26, 2013 6:26

replace both lines with just:[code=auto:0] addAtcommand("afk",afk); [/code](it was dropped in the revision Jeffery linked to)

This post has been edited by Ind on Nov 26, 2013 6:29

sevenzz23 - Nov 26, 2013 6:29

got it..

sevenzz23 - Nov 26, 2013 7:05

I'm a little bit confused about the red underline error about [color=#b22222][u]addAtcommand[/u] [/color]
[font='courier new', courier, monospace][font=arial, helvetica, sans-serif]On mousehover this error will apear> [/font]Error: identifier "addAtcommand" is undefined[/font]

[font='courier new', courier, monospace][font=arial, helvetica, sans-serif]But no error when compiling and its working in game..[/font][/font]

Ind - Nov 26, 2013 7:06

maybe your editor fault, addAtcommand is defined in src/common/HPMi.h