From bf3c802e4847a7255570a53532e27a92f3bd165c Mon Sep 17 00:00:00 2001 From: Phong Dang Date: Wed, 1 Aug 2007 17:56:27 +0000 Subject: [PATCH] Fixed amb713, IsPlayerAlive native comment. --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401250 --- extensions/sdktools/vnatives.cpp | 2 ++ plugins/include/sdktools_functions.inc | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/extensions/sdktools/vnatives.cpp b/extensions/sdktools/vnatives.cpp index ad9e8ed7..e260d446 100644 --- a/extensions/sdktools/vnatives.cpp +++ b/extensions/sdktools/vnatives.cpp @@ -633,6 +633,8 @@ static cell_t IsPlayerAlive(IPluginContext *pContext, const cell_t *params) { return info->IsDead() ? 0 : 1; } + + return pContext->ThrowNativeError("\"IsPlayerAlive\" not supported by this mod"); } return (*((uint8_t *)pEntity + lifeState_off) == LIFE_ALIVE) ? 1: 0; } diff --git a/plugins/include/sdktools_functions.inc b/plugins/include/sdktools_functions.inc index f5687287..70eedeac 100644 --- a/plugins/include/sdktools_functions.inc +++ b/plugins/include/sdktools_functions.inc @@ -129,7 +129,7 @@ native GetClientEyeAngles(client, Float:ang[3]); * Returns if the client is alive or dead. * * @param client Player's index. - * @return True if the client is dead, false otherwise. + * @return True if the client is alive, false otherwise. * @error Invalid client index, client not in game, or no mod support. */ native bool:IsPlayerAlive(client);