core/smn_console.cpp
changeset 994 a0d587e40030
parent 936 be5d96bd36e3
child 1011 b413072540fd
     1.1 --- a/core/smn_console.cpp	Wed Jun 20 11:12:50 2007 +0000
     1.2 +++ b/core/smn_console.cpp	Wed Jun 20 11:30:29 2007 +0000
     1.3 @@ -464,12 +464,12 @@
     1.4  
     1.5  	if (!pPlayer)
     1.6  	{
     1.7 -		return pContext->ThrowNativeError("Player %d is not a valid player", params[1]);
     1.8 +		return pContext->ThrowNativeError("Client index %d is invalid", params[1]);
     1.9  	}
    1.10  
    1.11  	if (!pPlayer->IsConnected())
    1.12  	{
    1.13 -		return pContext->ThrowNativeError("Player %d is not connected", params[1]);
    1.14 +		return pContext->ThrowNativeError("Client %d is not connected", params[1]);
    1.15  	}
    1.16  
    1.17  	/* Trying a query on a bot results in callback not be fired, so don't bother */
    1.18 @@ -615,7 +615,7 @@
    1.19  	int index = params[1];
    1.20  	if ((index < 0) || (index > g_Players.GetMaxClients()))
    1.21  	{
    1.22 -		return pCtx->ThrowNativeError("Invalid client index %d", index);
    1.23 +		return pCtx->ThrowNativeError("Client index %d is invalid", index);
    1.24  	}
    1.25  
    1.26  	CPlayer *pPlayer = NULL;
    1.27 @@ -695,12 +695,12 @@
    1.28  
    1.29  	if (!pPlayer)
    1.30  	{
    1.31 -		return pContext->ThrowNativeError("Player %d is not a valid player", params[1]);
    1.32 +		return pContext->ThrowNativeError("Client index %d is invalid", params[1]);
    1.33  	}
    1.34  
    1.35  	if (!pPlayer->IsConnected())
    1.36  	{
    1.37 -		return pContext->ThrowNativeError("Player %d is not connected", params[1]);
    1.38 +		return pContext->ThrowNativeError("Client %d is not connected", params[1]);
    1.39  	}
    1.40  
    1.41  	char buffer[256];
    1.42 @@ -718,12 +718,12 @@
    1.43  
    1.44  	if (!pPlayer)
    1.45  	{
    1.46 -		return pContext->ThrowNativeError("Player %d is not a valid player", params[1]);
    1.47 +		return pContext->ThrowNativeError("Client index %d is invalid", params[1]);
    1.48  	}
    1.49  
    1.50  	if (!pPlayer->IsConnected())
    1.51  	{
    1.52 -		return pContext->ThrowNativeError("Player %d is not connected", params[1]);
    1.53 +		return pContext->ThrowNativeError("Client %d is not connected", params[1]);
    1.54  	}
    1.55  
    1.56  	char buffer[256];