From d49db221d8173f2c7b44599e9de88d3ebbe422f8 Mon Sep 17 00:00:00 2001 From: Kyle Date: Sat, 23 Jan 2021 20:30:44 +0800 Subject: [PATCH] Fix error reporting --- extension.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extension.cpp b/extension.cpp index 97d269a..7646ddb 100644 --- a/extension.cpp +++ b/extension.cpp @@ -311,7 +311,7 @@ static cell_t Native_SetEntityOwner(IPluginContext* pContext, const cell_t* para if (params[1] >= 1 && params[1] < SM_MAXPLAYERS) { - smutils->LogError(myself, "Entity %d is not being hook."); + smutils->LogError(myself, "Entity %d is not being hook.", params[1]); return false; } @@ -340,7 +340,7 @@ static cell_t Native_SetEntityState(IPluginContext* pContext, const cell_t* para if (params[1] >= 1 && params[1] < SM_MAXPLAYERS) { - smutils->LogError(myself, "Entity %d is not being hook."); + smutils->LogError(myself, "Entity %d is not being hook.", params[1]); return false; }