extensions/sdktools/vnatives.cpp
changeset 2710 3bf47c5fa143
parent 2583 d3b2571c378b
child 2743 a42b24399f60
     1.1 --- a/extensions/sdktools/vnatives.cpp	Mon May 11 11:45:08 2009 +1200
     1.2 +++ b/extensions/sdktools/vnatives.cpp	Mon May 11 18:46:19 2009 -0700
     1.3 @@ -128,7 +128,7 @@
     1.4  		{
     1.5  			return pContext->ThrowNativeError("\"RemovePlayerItem\" not supported by this mod");
     1.6  		} else if (!pCall) {
     1.7 -			return pContext->ThrowNativeError("\"RemovePlayerItem\" wrapper failed to initialized");
     1.8 +			return pContext->ThrowNativeError("\"RemovePlayerItem\" wrapper failed to initialize");
     1.9  		}
    1.10  	}
    1.11  
    1.12 @@ -153,7 +153,7 @@
    1.13  		{
    1.14  			return pContext->ThrowNativeError("\"GiveNamedItem\" not supported by this mod");
    1.15  		} else if (!pCall) {
    1.16 -			return pContext->ThrowNativeError("\"GiveNamedItem\" wrapper failed to initialized");
    1.17 +			return pContext->ThrowNativeError("\"GiveNamedItem\" wrapper failed to initialize");
    1.18  		}
    1.19  	}
    1.20  
    1.21 @@ -190,7 +190,7 @@
    1.22  		{
    1.23  			return pContext->ThrowNativeError("\"Weapon_GetSlot\" not supported by this mod");
    1.24  		} else if (!pCall) {
    1.25 -			return pContext->ThrowNativeError("\"Weapon_GetSlot\" wrapper failed to initialized");
    1.26 +			return pContext->ThrowNativeError("\"Weapon_GetSlot\" wrapper failed to initialize");
    1.27  		}
    1.28  	}
    1.29  
    1.30 @@ -229,7 +229,7 @@
    1.31  		{
    1.32  			return pContext->ThrowNativeError("\"Ignite\" not supported by this mod");
    1.33  		} else if (!pCall) {
    1.34 -			return pContext->ThrowNativeError("\"Ignite\" wrapper failed to initialized");
    1.35 +			return pContext->ThrowNativeError("\"Ignite\" wrapper failed to initialize");
    1.36  		}
    1.37  	}
    1.38  
    1.39 @@ -261,7 +261,7 @@
    1.40  		{
    1.41  			return pContext->ThrowNativeError("\"Ignite\" not supported by this mod");
    1.42  		} else if (!pCall) {
    1.43 -			return pContext->ThrowNativeError("\"Ignite\" wrapper failed to initialized");
    1.44 +			return pContext->ThrowNativeError("\"Ignite\" wrapper failed to initialize");
    1.45  		}
    1.46  	}
    1.47  
    1.48 @@ -289,7 +289,7 @@
    1.49  		{
    1.50  			return pContext->ThrowNativeError("\"Extinguish\" not supported by this mod");
    1.51  		} else if (!pCall) {
    1.52 -			return pContext->ThrowNativeError("\"Extinguish\" wrapper failed to initialized");
    1.53 +			return pContext->ThrowNativeError("\"Extinguish\" wrapper failed to initialize");
    1.54  		}
    1.55  	}
    1.56  
    1.57 @@ -313,7 +313,7 @@
    1.58  		{
    1.59  			return pContext->ThrowNativeError("\"Teleport\" not supported by this mod");
    1.60  		} else if (!pCall) {
    1.61 -			return pContext->ThrowNativeError("\"Teleport\" wrapper failed to initialized");
    1.62 +			return pContext->ThrowNativeError("\"Teleport\" wrapper failed to initialize");
    1.63  		}
    1.64  	}
    1.65  
    1.66 @@ -343,7 +343,7 @@
    1.67  		}
    1.68  		else if (!pCall)
    1.69  		{
    1.70 -			return pContext->ThrowNativeError("\"CommitSuicide\" wrapper failed to initialized");
    1.71 +			return pContext->ThrowNativeError("\"CommitSuicide\" wrapper failed to initialize");
    1.72  		}
    1.73  	}
    1.74  
    1.75 @@ -365,7 +365,7 @@
    1.76  		{
    1.77  			return pContext->ThrowNativeError("\"CommitSuicide\" not supported by this mod");
    1.78  		} else if (!pCall) {
    1.79 -			return pContext->ThrowNativeError("\"CommitSuicide\" wrapper failed to initialized");
    1.80 +			return pContext->ThrowNativeError("\"CommitSuicide\" wrapper failed to initialize");
    1.81  		}
    1.82  	}
    1.83  
    1.84 @@ -667,7 +667,7 @@
    1.85  		{
    1.86  			return pContext->ThrowNativeError("\"FindEntityByClassname\" not supported by this mod");
    1.87  		} else if (!pCall) {
    1.88 -			return pContext->ThrowNativeError("\"FindEntityByClassname\" wrapper failed to initialized");
    1.89 +			return pContext->ThrowNativeError("\"FindEntityByClassname\" wrapper failed to initialize");
    1.90  		}
    1.91  	}
    1.92  
    1.93 @@ -707,7 +707,7 @@
    1.94  		{
    1.95  			return pContext->ThrowNativeError("\"CreateEntityByName\" not supported by this mod");
    1.96  		} else if (!pCall) {
    1.97 -			return pContext->ThrowNativeError("\"CreateEntityByName\" wrapper failed to initialized");
    1.98 +			return pContext->ThrowNativeError("\"CreateEntityByName\" wrapper failed to initialize");
    1.99  		}
   1.100  	}
   1.101  
   1.102 @@ -745,7 +745,7 @@
   1.103  		{
   1.104  			return pContext->ThrowNativeError("\"CreateEntityByName\" not supported by this mod");
   1.105  		} else if (!pCall) {
   1.106 -			return pContext->ThrowNativeError("\"CreateEntityByName\" wrapper failed to initialized");
   1.107 +			return pContext->ThrowNativeError("\"CreateEntityByName\" wrapper failed to initialize");
   1.108  		}
   1.109  	}
   1.110  
   1.111 @@ -782,7 +782,7 @@
   1.112  		{
   1.113  			return pContext->ThrowNativeError("\"DispatchSpawn\" not supported by this mod");
   1.114  		} else if (!pCall) {
   1.115 -			return pContext->ThrowNativeError("\"DispatchSpawn\" wrapper failed to initialized");
   1.116 +			return pContext->ThrowNativeError("\"DispatchSpawn\" wrapper failed to initialize");
   1.117  		}
   1.118  	}
   1.119  
   1.120 @@ -807,7 +807,7 @@
   1.121  		{
   1.122  			return pContext->ThrowNativeError("\"DispatchKeyValue\" not supported by this mod");
   1.123  		} else if (!pCall) {
   1.124 -			return pContext->ThrowNativeError("\"DispatchKeyValue\" wrapper failed to initialized");
   1.125 +			return pContext->ThrowNativeError("\"DispatchKeyValue\" wrapper failed to initialize");
   1.126  		}
   1.127  	}
   1.128  
   1.129 @@ -818,7 +818,7 @@
   1.130  	DECODE_VALVE_PARAM(3, vparams, 1);
   1.131  	FINISH_CALL_SIMPLE(&ret);
   1.132  
   1.133 -	return (ret) ? 1 : 0;
   1.134 +	return ret ? 1 : 0;
   1.135  }
   1.136  
   1.137  static cell_t DispatchKeyValueFloat(IPluginContext *pContext, const cell_t *params)
   1.138 @@ -834,7 +834,7 @@
   1.139  		{
   1.140  			return pContext->ThrowNativeError("\"DispatchKeyValueFloat\" not supported by this mod");
   1.141  		} else if (!pCall) {
   1.142 -			return pContext->ThrowNativeError("\"DispatchKeyValueFloat\" wrapper failed to initialized");
   1.143 +			return pContext->ThrowNativeError("\"DispatchKeyValueFloat\" wrapper failed to initialize");
   1.144  		}
   1.145  	}
   1.146  
   1.147 @@ -845,7 +845,7 @@
   1.148  	DECODE_VALVE_PARAM(3, vparams, 1);
   1.149  	FINISH_CALL_SIMPLE(&ret);
   1.150  
   1.151 -	return (ret) ? 1 : 0;
   1.152 +	return ret ? 1 : 0;
   1.153  }
   1.154  
   1.155  static cell_t DispatchKeyValueVector(IPluginContext *pContext, const cell_t *params)
   1.156 @@ -865,7 +865,7 @@
   1.157  		{
   1.158  			return pContext->ThrowNativeError("\"DispatchKeyValueVector\" not supported by this mod");
   1.159  		} else if (!pCall) {
   1.160 -			return pContext->ThrowNativeError("\"DispatchKeyValueVector\" wrapper failed to initialized");
   1.161 +			return pContext->ThrowNativeError("\"DispatchKeyValueVector\" wrapper failed to initialize");
   1.162  		}
   1.163  	}
   1.164  
   1.165 @@ -876,7 +876,7 @@
   1.166  	DECODE_VALVE_PARAM(3, vparams, 1);
   1.167  	FINISH_CALL_SIMPLE(&ret);
   1.168  
   1.169 -	return (ret) ? 1 : 0;
   1.170 +	return ret ? 1 : 0;
   1.171  }
   1.172  
   1.173  static cell_t sm_GetClientAimTarget(IPluginContext *pContext, const cell_t *params)
   1.174 @@ -907,7 +907,7 @@
   1.175  		{
   1.176  			return pContext->ThrowNativeError("\"SetEntityModel\" not supported by this mod");
   1.177  		} else if (!pCall) {
   1.178 -			return pContext->ThrowNativeError("\"SetEntityModel\" wrapper failed to initialized");
   1.179 +			return pContext->ThrowNativeError("\"SetEntityModel\" wrapper failed to initialize");
   1.180  		}
   1.181  	}
   1.182  
   1.183 @@ -976,7 +976,7 @@
   1.184  		{
   1.185  			return pContext->ThrowNativeError("\"WeaponEquip\" not supported by this mod");
   1.186  		} else if (!pCall) {
   1.187 -			return pContext->ThrowNativeError("\"WeaponEquip\" wrapper failed to initialized");
   1.188 +			return pContext->ThrowNativeError("\"WeaponEquip\" wrapper failed to initialize");
   1.189  		}
   1.190  	}
   1.191  
   1.192 @@ -999,7 +999,7 @@
   1.193  		}
   1.194  		else if (!pCall)
   1.195  		{
   1.196 -			return pContext->ThrowNativeError("\"Activate\" wrapper failed to initialized");
   1.197 +			return pContext->ThrowNativeError("\"Activate\" wrapper failed to initialize");
   1.198  		}
   1.199  	}
   1.200  
   1.201 @@ -1042,7 +1042,7 @@
   1.202  		}
   1.203  		else if (!pCall)
   1.204  		{
   1.205 -			return pContext->ThrowNativeError("\"SetUserCvar\" wrapper failed to initialized");
   1.206 +			return pContext->ThrowNativeError("\"SetUserCvar\" wrapper failed to initialize");
   1.207  		}
   1.208  	}
   1.209  
   1.210 @@ -1057,7 +1057,7 @@
   1.211  		}
   1.212  		else if (!pUpdateSettings)
   1.213  		{
   1.214 -			return pContext->ThrowNativeError("\"SetUserCvar\" wrapper failed to initialized");
   1.215 +			return pContext->ThrowNativeError("\"SetUserCvar\" wrapper failed to initialize");
   1.216  		}
   1.217  	}
   1.218  #else