From 1c3e8de57a4e517f790b25751ec71783c8e6b0d3 Mon Sep 17 00:00:00 2001 From: Vincent Herbet Date: Mon, 6 Mar 2017 21:08:16 +0100 Subject: [PATCH] Introduce a datapack position tag (#419) --- plugins/include/datapack.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/include/datapack.inc b/plugins/include/datapack.inc index 91164ef8..8c9f86f4 100644 --- a/plugins/include/datapack.inc +++ b/plugins/include/datapack.inc @@ -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.