core/smn_player.cpp
changeset 2193 db7c6362f3f2
parent 2162 59c5dc056c69
child 2289 44045ead61cd
     1.1 --- a/core/smn_player.cpp	Thu Jul 10 01:26:02 2008 +0000
     1.2 +++ b/core/smn_player.cpp	Fri Jul 11 08:18:43 2008 +0000
     1.3 @@ -1000,7 +1000,7 @@
     1.4  			g_SourceMod.SetGlobalTarget(client);
     1.5  			g_SourceMod.FormatString(buffer, sizeof(buffer), pContext, params, fmt_param);
     1.6  
     1.7 -			if (pContext->GetContext()->n_err != SP_ERROR_NONE)
     1.8 +			if (pContext->GetLastNativeError() != SP_ERROR_NONE)
     1.9  			{
    1.10  				return 0;
    1.11  			}
    1.12 @@ -1015,7 +1015,7 @@
    1.13  		g_SourceMod.SetGlobalTarget(SOURCEMOD_SERVER_LANGUAGE);
    1.14  		g_SourceMod.FormatString(buffer, sizeof(buffer), pContext, params, fmt_param);
    1.15  
    1.16 -		if (pContext->GetContext()->n_err != SP_ERROR_NONE)
    1.17 +		if (pContext->GetLastNativeError() != SP_ERROR_NONE)
    1.18  		{
    1.19  			return 0;
    1.20  		}
    1.21 @@ -1054,7 +1054,7 @@
    1.22  				}
    1.23  				g_SourceMod.FormatString(buffer, sizeof(buffer), pContext, params, fmt_param);
    1.24  
    1.25 -				if (pContext->GetContext()->n_err != SP_ERROR_NONE)
    1.26 +				if (pContext->GetLastNativeError() != SP_ERROR_NONE)
    1.27  				{
    1.28  					return 0;
    1.29  				}
    1.30 @@ -1078,7 +1078,7 @@
    1.31  				}
    1.32  				g_SourceMod.FormatString(buffer, sizeof(buffer), pContext, params, fmt_param);
    1.33  
    1.34 -				if (pContext->GetContext()->n_err != SP_ERROR_NONE)
    1.35 +				if (pContext->GetLastNativeError() != SP_ERROR_NONE)
    1.36  				{
    1.37  					return 0;
    1.38  				}
    1.39 @@ -1123,7 +1123,7 @@
    1.40  		g_SourceMod.SetGlobalTarget(client);
    1.41  		g_SourceMod.FormatString(buffer, sizeof(buffer), pContext, params, fmt_param);
    1.42  
    1.43 -		if (pContext->GetContext()->n_err != SP_ERROR_NONE)
    1.44 +		if (pContext->GetLastNativeError() != SP_ERROR_NONE)
    1.45  		{
    1.46  			return 0;
    1.47  		}
    1.48 @@ -1152,7 +1152,7 @@
    1.49  		g_SourceMod.SetGlobalTarget(SOURCEMOD_SERVER_LANGUAGE);
    1.50  		g_SourceMod.FormatString(buffer, sizeof(buffer), pContext, params, fmt_param);
    1.51  
    1.52 -		if (pContext->GetContext()->n_err != SP_ERROR_NONE)
    1.53 +		if (pContext->GetLastNativeError() != SP_ERROR_NONE)
    1.54  		{
    1.55  			return 0;
    1.56  		}
    1.57 @@ -1191,7 +1191,7 @@
    1.58  				}
    1.59  				g_SourceMod.FormatString(buffer, sizeof(buffer), pContext, params, fmt_param);
    1.60  
    1.61 -				if (pContext->GetContext()->n_err != SP_ERROR_NONE)
    1.62 +				if (pContext->GetLastNativeError() != SP_ERROR_NONE)
    1.63  				{
    1.64  					return 0;
    1.65  				}
    1.66 @@ -1215,7 +1215,7 @@
    1.67  				}
    1.68  				g_SourceMod.FormatString(buffer, sizeof(buffer), pContext, params, fmt_param);
    1.69  
    1.70 -				if (pContext->GetContext()->n_err != SP_ERROR_NONE)
    1.71 +				if (pContext->GetLastNativeError() != SP_ERROR_NONE)
    1.72  				{
    1.73  					return 0;
    1.74  				}
    1.75 @@ -1286,7 +1286,7 @@
    1.76  	char buffer[256];
    1.77  	g_SourceMod.FormatString(buffer, sizeof(buffer), pContext, params, 2);
    1.78  
    1.79 -	if (pContext->GetContext()->n_err != SP_ERROR_NONE)
    1.80 +	if (pContext->GetLastNativeError() != SP_ERROR_NONE)
    1.81  	{
    1.82  		return 0;
    1.83  	}
    1.84 @@ -1332,7 +1332,7 @@
    1.85  	char buffer[256];
    1.86  	g_SourceMod.FormatString(buffer, sizeof(buffer), pContext, params, 2);
    1.87  
    1.88 -	if (pContext->GetContext()->n_err != SP_ERROR_NONE)
    1.89 +	if (pContext->GetLastNativeError() != SP_ERROR_NONE)
    1.90  	{
    1.91  		return 0;
    1.92  	}