Releases: ScavengeSurvive/item
1.10.6
- resolved tag mismatch related to GetPlayerNearbyItems
- fix YSI include paths
- const corrections and tag fixes
- Fixed a bug where the item name would not be reset upon creation
- Fixed a bug with nearby player detection for giving items
- Added price value to itemtype
Thanks @mysy00 @kolor4do and @realStandal for your contributions!
1.10.5
Added version constraints to all dependencies.
1.10.4
sampctl package release: 1.10.4
1.10.1
sampctl package release: 1.10.1
1.10.0
This release marks the first stable standalone release of what once was "SIF/Item". This new version includes a lot of breaking changes to return values and arguments.
In particular, all return values are now 0 on success and non-zero on failure, where each positive integer represents a different failure case.
The other major change is to functions that usually return their intended value, such as GetItemObjectID
- the old version returned the object ID directly, or -1 if the item didn't exist however this version follows the return value guidelines and returns 1 on failure and 0 on success. The object ID is stored in a pass-by-reference variable. All other functions that returned values in this way now use pass-by-reference instead for better checking.
The final major change is that item identifiers now use Item:
as a tag for compile-time correctness checking. The addition of this tag has already resulted in a number of hidden bugs being fixed.