Implemented amb370 - added PrintToChatAll stock

Also added PrintCenterTextAll stock

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40898
This commit is contained in:
Scott Ehlert
2007-06-06 20:51:17 +00:00
parent 96527c93dc
commit bd15f93d7d
2 changed files with 63 additions and 17 deletions
+4 -4
View File
@@ -290,12 +290,12 @@ static cell_t PrintToChat(IPluginContext *pContext, const cell_t *params)
if (!pPlayer)
{
return pContext->ThrowNativeError("Client %d is not valid", params[1]);
return pContext->ThrowNativeError("Client %d is not valid", client);
}
if (!pPlayer->IsInGame())
{
return pContext->ThrowNativeError("Client %d is not in game", params[1]);
return pContext->ThrowNativeError("Client %d is not in game", client);
}
char buffer[256];
@@ -313,12 +313,12 @@ static cell_t PrintCenterText(IPluginContext *pContext, const cell_t *params)
if (!pPlayer)
{
return pContext->ThrowNativeError("Client %d is not valid", params[1]);
return pContext->ThrowNativeError("Client %d is not valid", client);
}
if (!pPlayer->IsInGame())
{
return pContext->ThrowNativeError("Client %d is not in game", params[1]);
return pContext->ThrowNativeError("Client %d is not in game", client);
}
char buffer[256];