Jump to content
  • 0
Sign in to follow this  
BuLaLaKaW

@autopots error when running make plugins

Question

Hi Sir Mhalicot,

I got this error when I tried to add autopots

 

autopots.c: In function ‘autoatpots_timer’:
autopots.c:79:20: warning: unused variable ‘item’ [-Wunused-variable]
  struct item_data* item = NULL;
                    ^
autopots.c: In function ‘atcommand_autopots’:
autopots.c:133:3: warning: implicit declaration of function ‘sscanf_s’ [-Wimplicit-function-declaration]
   sscanf_s(message, "%d %d %d %d ", &hp_rate, &hp_nameid, &sp_rate, &sp_nameid) < 4) ||
   ^
autopots.c:133:3: warning: nested extern declaration of ‘sscanf_s’ [-Wnested-externs]
autopots.c: In function ‘plugin_init’:
autopots.c:267:2: warning: implicit declaration of function ‘GET_SYMBOL’ [-Wimplicit-function-declaration]
  clif = GET_SYMBOL("clif");
  ^
autopots.c:267:2: warning: nested extern declaration of ‘GET_SYMBOL’ [-Wnested-externs]
autopots.c:267:7: warning: assignment makes pointer from integer without a cast
  clif = GET_SYMBOL("clif");
       ^
autopots.c:268:12: warning: assignment makes pointer from integer without a cast
     script = GET_SYMBOL("script");
            ^
autopots.c:269:5: warning: assignment makes pointer from integer without a cast
  pc = GET_SYMBOL("pc");
     ^
autopots.c:270:12: warning: assignment makes pointer from integer without a cast
  atcommand = GET_SYMBOL("atcommand");
            ^
autopots.c:271:6: warning: assignment makes pointer from integer without a cast
  map = GET_SYMBOL("map");
      ^
autopots.c:272:7: warning: assignment makes pointer from integer without a cast
  unit = GET_SYMBOL("unit");
       ^
autopots.c:273:8: warning: assignment makes pointer from integer without a cast
  timer = GET_SYMBOL("timer");
        ^
autopots.c:274:9: warning: assignment makes pointer from integer without a cast
  itemdb = GET_SYMBOL("itemdb");
         ^
autopots.c: In function ‘autoatpots_timer’:
autopots.c:114:28: warning: array subscript is above array bounds [-Warray-bounds]
    if( sd->status.inventory[index].nameid == hp_nameid )
                            ^
autopots.c:120:28: warning: array subscript is above array bounds [-Warray-bounds]
    if( sd->status.inventory[index].nameid == sp_nameid )
                            ^
/tmp/cciWdLTs.o: In function `atcommand_autopots':
/folder/src/plugins/autopots.c:137: undefined reference to `sscanf_s'
/folder/src/plugins/autopots.c:138: undefined reference to `sscanf_s'
/folder/src/plugins/autopots.c:133: undefined reference to `sscanf_s'
/tmp/cciWdLTs.o: In function `atcommand_autohp':
/folder/src/plugins/autopots.c:189: undefined reference to `sscanf_s'
/folder/src/plugins/autopots.c:190: undefined reference to `sscanf_s'
/tmp/cciWdLTs.o:/folder/src/plugins/autopots.c:186: more undefined references to `sscanf_s' follow
/tmp/cciWdLTs.o: In function `plugin_init':
/folder/src/plugins/autopots.c:267: undefined reference to `GET_SYMBOL'
/folder/src/plugins/autopots.c:268: undefined reference to `GET_SYMBOL'
/folder/src/plugins/autopots.c:269: undefined reference to `GET_SYMBOL'
/folder/src/plugins/autopots.c:270: undefined reference to `GET_SYMBOL'
/folder/src/plugins/autopots.c:271: undefined reference to `GET_SYMBOL'
/tmp/cciWdLTs.o:/folder/src/plugins/autopots.c:272: more undefined references to `GET_SYMBOL' follow
collect2: error: ld returned 1 exit status
Makefile:105: recipe for target '../../plugins/autopots.so' failed
make[1]: *** [../../plugins/autopots.so] Error 1
make[1]: Leaving directory '/folder/src/plugins'
Makefile:132: recipe for target 'plugins' failed
make: *** [plugins] Error 2

 

help....

PS. can you update or make plugin for @bot and @autopots 

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

What? Did you mean to PM this to somebody...? If not, you need to post the file(s), as this is custom content and we have no idea what you are talking about.

Edited by Myriad

Share this post


Link to post
Share on other sites
  • 0

oh my bad, this is mhalicot's autopots

i believe it was meant for windows server not linux

i was hoping someone has the ability to update this for free but if not I hope someone can do paid service then

i was trying to use mhalicot's free plugins

i might have posted it on the wrong section

 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.