Brynner 34 Posted August 25, 2013 what happen to typedef int? typedef int (*AtCommandFunc)(const int fd, struct map_session_data* sd, const char* command, const char* message); it became typedef bool? typedef bool (*AtCommandFunc)(const int fd, struct map_session_data* sd, const char* command, const char* message,struct AtCommandInfo *info); what is the correct way to use the typedef int? typedef int (*AtCommandFunc)(const int fd, struct map_session_data* sd, const char* command, const char* message); because im getting warnings. srcmapatcommand.c(9694): warning C4113: 'int (__cdecl *)(const int,map_session_data *,const char *,const char *)' differs in parameter lists from 'AtCommandFunc'srcmapatcommand.c(9694): warning C4133: 'initializing' : incompatible types - from 'int (__cdecl *)(const int,map_session_data *,const char *,const char *)' to 'AtCommandFunc' Quote Share this post Link to post Share on other sites
0 goddameit 52 Posted August 26, 2013 If those come from what you done, you should show us what you're trying, if not, you can report it to developer http://herc.ws/board/tracker/ Quote Share this post Link to post Share on other sites
0 Brynner 34 Posted August 26, 2013 im just asking if the old typedef int (*AtCommandFunc)(const int fd, struct map_session_data* sd, const char* command, const char* message); is already replace with the new one. which is. typedef bool (*AtCommandFunc)(const int fd, struct map_session_data* sd, const char* command, const char* message,struct AtCommandInfo *info); i hope you get it. because you can't use the old typedef int. or else you'll got this warning upon compiling. srcmapatcommand.c(9694): warning C4113: 'int (__cdecl *)(const int,map_session_data *,const char *,const char *)' differs in parameter lists from 'AtCommandFunc'srcmapatcommand.c(9694): warning C4133: 'initializing' : incompatible types - from 'int (__cdecl *)(const int,map_session_data *,const char *,const char *)' to 'AtCommandFunc' i hope you get it clearly. Quote Share this post Link to post Share on other sites
what happen to typedef int?
it became typedef bool?
what is the correct way to use the typedef int?
because im getting warnings.
Share this post
Link to post
Share on other sites