Fixed prototype of set_offset_short
Fixed all offset natives (they checked ent index above maxClients, should've been maxEntities (some also checked if player is online)) Added s/get_offset_char() Fixed set_pdata_float to set float value from parameter properly Fixed set_pdata_short to set short value from parameter properly Reimplemented find_ent_by_owner
This commit is contained in:
@ -51,11 +51,13 @@ native set_msg_arg_string(argn, szString[]);
|
||||
native get_offset(id, offset);
|
||||
native Float:get_offset_float(id, offset);
|
||||
native get_offset_short(id, offset);
|
||||
native get_offset_char(id, offset);
|
||||
|
||||
/* sets pvPrivateData offset. */
|
||||
native set_offset(id, offset, value);
|
||||
native set_offset_float(id, offset, Float:value);
|
||||
native set_offset_short(id, offset);
|
||||
native set_offset_short(id, offset, value);
|
||||
native set_offset_char(id, offset, value);
|
||||
|
||||
/* Precaches any file. */
|
||||
native precache_generic(szFile[]);
|
||||
|
Reference in New Issue
Block a user