Originally Posted by
feanor
if i edit like this
PHP Code:
logprint(Rcon from %s:\n%s\n", NET_AdrToString (from), Cmd_Argv(2))
pretty sure it will not work cuz logprint is not declared. how can i call logprint function in libcod ? or i have to declare myself ?
functions.hpp
PHP Code:
typedef void (*G_LogPrintf_t)(const char *fmt, ...);
#if COD_VERSION == COD2_1_0
static const G_LogPrintf_t G_LogPrintf = (G_LogPrintf_t)0x08107502;
#elif COD_VERSION == COD2_1_2
static const G_LogPrintf_t G_LogPrintf = (G_LogPrintf_t)0x08109836;
#elif COD_VERSION == COD2_1_3
static const G_LogPrintf_t G_LogPrintf = (G_LogPrintf_t)0x08109992;
#endif
PHP Code:
G_LogPrintf( "Something\n" );