Results 1 to 10 of 14

Thread: console print

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #12
    Corporal voron00's Avatar
    Join Date
    Nov 2014
    Posts
    248
    Thanks
    64
    Thanked 216 Times in 116 Posts
    Quote Originally Posted by feanor View Post
    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" ); 
    sudo apt-get rekt

  2. The Following 2 Users Say Thank You to voron00 For This Useful Post:

    feanor (15th November 2017),kung foo man (15th November 2017)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •