You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/**
* Creates and ADT array of client item IDs
* -
* @param client Client index
* @param size Optional param to store array size
* @param category Optional parameter to indicate the category from which to take
* -
* @return ArrayList
*/
stock ArrayList Shop_CreateArrayOfClientItems(int client, char[] category = "", int &size = 0)
{
ArrayList _shop_array = new ArrayList();
size = Shop_FillArrayByClientItems(client, _shop_array, category);
return _shop_array;
}
/**
* Fills an adt_array by the client item ids. Note that array is cleared before being filled
* -
* @param client Client index
* @param array ADT array to use
* @param category Optional parameter to indicate the category from which to take
* -
* @return Number of bytes that written to ArrayList
*/
native int Shop_FillArrayByClientItems(int client, ArrayList array, char[] category = "");
And also add the "category" parameter to these natives and stocks:
/**
* Fills an adt_array by the item ids. Note that array is cleared before being filled
* -
* @param array ADT array to use
* @param category Optional parameter to indicate the category from which to take
* -
* @return Number of bytes that written to ArrayList
*/
native int Shop_FillArrayByItems(ArrayList array, char[] category = "");
/**
* Creates and ADT array of item ids
* -
* @param size Optional param to store array size
* @param category Optional parameter to indicate the category from which to take
* -
* @return ArrayList
*/
stock ArrayList Shop_CreateArrayOfItems(int &size = 0, char[] category = "")
{
ArrayList _shop_array = new ArrayList();
size = Shop_FillArrayByItems(_shop_array);
return _shop_array;
}
The text was updated successfully, but these errors were encountered:
And also add the "category" parameter to these natives and stocks:
The text was updated successfully, but these errors were encountered: