From f8a4043e5d177a377606909a17c9aa69730b16c7 Mon Sep 17 00:00:00 2001 From: zaCade Date: Sat, 12 Aug 2023 20:23:21 +0200 Subject: [PATCH] [StopSound] Fix music if statement. --- StopSound/scripting/StopSound.sp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/StopSound/scripting/StopSound.sp b/StopSound/scripting/StopSound.sp index 9f4eba1..59c1764 100644 --- a/StopSound/scripting/StopSound.sp +++ b/StopSound/scripting/StopSound.sp @@ -770,7 +770,7 @@ public void OnReloadEffect(DataPack pack) public Action Hook_AmbientSound(char sample[PLATFORM_MAX_PATH], int &entity, float &volume, int &level, int &pitch, float pos[3], int &flags, float &delay) { // Are we playing music? - if(!strncmp(sample, "music", 5, false) && !strncmp(sample, "#", 1, false)) + if(strncmp(sample, "music", 5, false) != 0 && strncmp(sample, "#", 1, false) != 0) return Plugin_Continue; char sEntity[16];