mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-24 13:55:36 +03:00
compiles now
This commit is contained in:
parent
6d58afcedb
commit
15904761e8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user