test.sp(10) : error 100: function prototypes do not match
test.sp(13) : error 159: brackets after variable name indicate a fixed-size array, but size could not be determined - either specify sizes, an array initializer, or use dynamic syntax (such as 'char[] x')
test.sp(13) : error 159: brackets after variable name indicate a fixed-size array, but size could not be determined - either specify sizes, an array initializer, or use dynamic syntax (such as 'char[] x')
test.sp(13) : error 159: brackets after variable name indicate a fixed-size array, but size could not be determined - either specify sizes, an array initializer, or use dynamic syntax (such as 'char[] x')
test.sp(13) : fatal error 190: too many error messages on one line
#include <sdktools>
public void OnPluginStart()
{
AddNormalSoundHook(shook);
}
public Action shook(int clients[MAXPLAYERS], int &numClients, char sample[PLATFORM_MAX_PATH],
int &entity, int &channel, float &volume, int &level, int &pitch, int &flags,
char soundEntry[PLATFORM_MAX_PATH], int &seed)
{
PrintToServer("%i %s", entity, sample);
}
From https://sm.alliedmods.net/new-api/
Problem: If I noob try to copy NormalSHook callback https://sm.alliedmods.net/new-api/sdktools_sound/NormalSHook
I get compile errors
To get right one, get it work; I need go to look from file https://sm.alliedmods.net/new-api/sdktools_sound/__raw to get correct version of NormalSHook