Quote:
Originally Posted by bl4nk
PHP Code:
public Action:SoundHook(clients[MAXPLAYERS], &numClients, String: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(players, 64, SM_PARAM_COPYBACK);
Code:
functag public Action:NormalSHook(clients[64], &numClients, String:sample[PLATFORM_MAX_PATH], &entity, &channel, &Float:volume, &level, &pitch, &flags);