I make all the changes to my code, then I try to hook.
This is not working for me:
addHookPre(atcommand, exec, atcommand_exec_pre);
I get this error:
atcommand.c: In function ‘atcommand_exec_pre’:
atcommand.c:1510:21: error: ‘atcommand_autotrade’ undeclared (first use in this function)
if (info->func == atcommand_autotrade) /* autotrade deletes caster, so we got nothing more to do here */
^
atcommand.c:1510:21: note: each undeclared identifier is reported only once for each function it appears in
atcommand.c: In function ‘plugin_init’:
atcommand.c:1555:2: warning: implicit declaration of function ‘addHookPre’ [-Wimplicit-function-declaration]
addHookPre(atcommand, exec, atcommand_exec_pre);
^
atcommand.c:1555:2: warning: nested extern declaration of ‘addHookPre’ [-Wnested-externs]
atcommand.c:1555:24: error: ‘exec’ undeclared (first use in this function)
addHookPre(atcommand, exec, atcommand_exec_pre);
Hello, I want to overwrite a function.
I make all the changes to my code, then I try to hook.
This is not working for me:
I get this error:
Share this post
Link to post
Share on other sites