From 62c096d7d3804b669b15b82c9c94f2c5fe6c5455 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 27 Apr 2006 17:41:41 +0000 Subject: [PATCH] updated comment as per at28188 --- plugins/include/amxmodx.inc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/plugins/include/amxmodx.inc b/plugins/include/amxmodx.inc index 40d9e792..b7bc7d6f 100755 --- a/plugins/include/amxmodx.inc +++ b/plugins/include/amxmodx.inc @@ -263,7 +263,17 @@ native get_user_ping(index, &ping, &loss); native get_user_origin(index, origin[3], mode = 0); /* Returns all carried weapons as bit sum. Gets -* also theirs indexes. */ + * also theirs indexes. + * Note that num is incremental - if you pass 0, you get + * 32 weapons towards the total. Afterwards, num will + * will contain the number of weapons retrieved. + * However, subsequent calls to get_user_weapons() will + * return the next batch of weapons, in case the mod + * supports more than 32 weapons. + * This means to call get_user_weapons() on the same + * inputs twice, you must reset num to 0 to get the + * original output again. + */ native get_user_weapons(index,weapons[32],&num); /* Returns weapon name. */