Updated EngFunc_SetKeyValue

This commit is contained in:
Johnny Bergström 2004-11-09 16:47:06 +00:00
parent 6457fc45c7
commit 16444a713a

View File

@ -11,6 +11,7 @@ static cell AMX_NATIVE_CALL engfunc(AMX *amx, cell *params)
int len; int len;
char *temp; char *temp;
char *temp2; char *temp2;
char *temp3;
cell *cRet; cell *cRet;
vec3_t Vec1; vec3_t Vec1;
vec3_t Vec2; vec3_t Vec2;
@ -947,13 +948,13 @@ static cell AMX_NATIVE_CALL engfunc(AMX *amx, cell *params)
return 1; return 1;
case EngFunc_SetKeyValue: // void ) (char *infobuffer, char *key, char *value); case EngFunc_SetKeyValue: // void ) (char *infobuffer, char *key, char *value);
cRet = MF_GetAmxAddr(amx,params[2]); temp3 = MF_GetAmxString(amx, params[2], 0, &len);
index = cRet[0];
CHECK_ENTITY(index); CHECK_ENTITY(index);
temp = MF_GetAmxString(amx,params[3],0,&len); temp = MF_GetAmxString(amx, params[3], 1, &len);
temp2 = MF_GetAmxString(amx,params[4],1,&len); temp2 = MF_GetAmxString(amx, params[4], 2, &len);
(*g_engfuncs.pfnSetKeyValue)((*g_engfuncs.pfnGetInfoKeyBuffer)(INDEXENT2(index)),temp,temp2); (*g_engfuncs.pfnSetKeyValue)(temp3, temp, temp2);
return 1; return 1;
case EngFunc_SetClientKeyValue: // void ) (int clientIndex, char *infobuffer, char *key, char *value); case EngFunc_SetClientKeyValue: // void ) (int clientIndex, char *infobuffer, char *key, char *value);
cRet = MF_GetAmxAddr(amx,params[2]); cRet = MF_GetAmxAddr(amx,params[2]);
index = cRet[0]; index = cRet[0];