AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   hooking pfnClientPrintf (https://forums.alliedmods.net/showthread.php?t=56917)

commonbullet 06-24-2007 02:54

hooking pfnClientPrintf
 
How can I properly hook ClientPrintf forwards?
Here's a frustrated attempt:

Code:
public client_printf(client, printtype, const msg[]) {     server_print("ClientPrintf: (%d) - %s", client, msg)     return FMRES_IGNORED } public plugin_init() {     register_forward(FM_ClientPrintf, "client_printf") }

Registered function is not even called; using amxmodx 1.76d

VEN 06-24-2007 09:51

Re: hooking pfnClientPrintf
 
There was a bug that is already fixed. See AMBugs site for details.

commonbullet 06-24-2007 12:12

Re: hooking pfnClientPrintf
 
Ok, thanks.


All times are GMT -4. The time now is 21:29.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.