View Single Post
psychonic

BAFFLED
Join Date: May 2008
Old 11-16-2010 , 07:38   Re: [TF2] Hide Players
Reply With Quote #3

Quote:
Originally Posted by bl4nk View Post
PHP Code:
public Action:SoundHook(clients[MAXPLAYERS], &numClientsString:sample[PLATFORM_MAX_PATH], &entity, &channel, &Float:volume, &level, &pitch, &flags
Should probably be MAXPLAYERS+1.
Though both MAXPLAYERS and MAXPLAYERS+1 will work (unless you try to access the 65th member), it's currently at a hardcoded 64 in callback listed in the inc to match the array passed from sdktools.
PHP Code:
pFunc->PushArray(players64SM_PARAM_COPYBACK); 
Code:
functag public Action:NormalSHook(clients[64], &numClients, String:sample[PLATFORM_MAX_PATH], &entity, &channel, &Float:volume, &level, &pitch, &flags);
psychonic is offline