mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-27 07:15:37 +03:00
Introduce a datapack position tag (#419)
This commit is contained in:
parent
b7773ba11f
commit
1c3e8de57a
@ -120,10 +120,10 @@ native ResetPack(DataPack:pack, bool:clear = false);
|
||||
*
|
||||
* @param pack Datapack handle
|
||||
*
|
||||
* @return Position in the datapack
|
||||
* @return Position in the datapack, only usable with calls to SetPackPosition
|
||||
* @error If an invalid handle is provided, an error will be thrown.
|
||||
*/
|
||||
native GetPackPosition(DataPack:pack);
|
||||
native DataPackPos:GetPackPosition(DataPack:pack);
|
||||
|
||||
/**
|
||||
* Sets the datapack read/write position.
|
||||
@ -139,7 +139,7 @@ native GetPackPosition(DataPack:pack);
|
||||
* @error If an invalid handle is provided, or the new position is
|
||||
* out of datapack bounds, an error will be thrown.
|
||||
*/
|
||||
native SetPackPosition(DataPack:pack, position);
|
||||
native SetPackPosition(DataPack:pack, DataPackPos:position);
|
||||
|
||||
/**
|
||||
* Returns if the datapack has reached its end and no more data can be read.
|
||||
|
Loading…
Reference in New Issue
Block a user