compiles now

This commit is contained in:
David Anderson 2004-03-24 00:54:35 +00:00
parent 6d58afcedb
commit 15904761e8

View File

@ -380,6 +380,11 @@ static cell AMX_NATIVE_CALL set_offset_short(AMX *amx, cell *params)
AMX_RAISEERROR(amx, AMX_ERR_NATIVE);
return 0;
}
if (!is_PlayerOn[index]) {
AMX_RAISEERROR(amx, AMX_ERR_NATIVE);
return 0;
}
edict_t *pEnt = INDEXENT(index);
@ -403,6 +408,11 @@ static cell AMX_NATIVE_CALL set_offset(AMX *amx, cell *params)
AMX_RAISEERROR(amx, AMX_ERR_NATIVE);
return 0;
}
if (!is_PlayerOn[index]) {
AMX_RAISEERROR(amx, AMX_ERR_NATIVE);
return 0;
}
edict_t *pEnt = INDEXENT(index);
@ -428,6 +438,11 @@ static cell AMX_NATIVE_CALL set_offset_float(AMX *amx, cell *params)
AMX_RAISEERROR(amx, AMX_ERR_NATIVE);
return 0;
}
if (!is_PlayerOn[index]) {
AMX_RAISEERROR(amx, AMX_ERR_NATIVE);
return 0;
}
edict_t *pEnt = INDEXENT(index);
@ -435,7 +450,7 @@ static cell AMX_NATIVE_CALL set_offset_float(AMX *amx, cell *params)
off -= 5;
#endif
*((float *)Player->pvPrivateData + off) = fNewValue;
*((float *)pEnt->pvPrivateData + off) = fNewValue;
return 1;
}
@ -501,7 +516,7 @@ static cell AMX_NATIVE_CALL get_offset_float(AMX *amx, cell *params)
{
int index = params[1];
int off = params[2];
//float retVal;
float retVal;
if (index < 1 || index > gpGlobals->maxEntities) {
AMX_RAISEERROR(amx, AMX_ERR_NATIVE);