07.08.2017, 13:24
Quote:
https://github.com/samp-incognito/sa...GetNearbyItems
That has all the info you need. If you wish to grab the number of objects in that position after using the native, you can use 'strlen(yourarray)'. |
https://github.com/samp-incognito/sa...GetNearbyItems
That has all the info you need. If you wish to grab the number of objects in that position after using the native, you can use 'strlen(yourarray)'. |
https://github.com/samp-incognito/sa...GetNearbyItems
That has all the info you need. If you wish to grab the number of objects in that position after using the native, you can use 'strlen(yourarray)'. |
new items = Streamer_GetNearbyItems( ... );
22 commits since 2.9.1. When is 2.9.2 coming? I'm getting sick of the checkpoint bug where they don't show until you re-enter the area. I know that one of the commits fixes this. I'd have thought you'd released 2.9.2 by now so people can download it, use it, and not experience that horrific bug.
|
@Salik, @TommyB, @IstuntmanI - do not use strlen for non-strings under any circumstances! If you pass a brand new array, strlen will return 0 and I don't think it would do any harm, the maxlen param ends its life in this function: https://sourcegraph.com/github.com/s...oArray#L92-108 but it certainly wouldn't do anything useful at all.
Use sizeof, it's even the default. You can also limit the amount of work done by using some value lower than sizeof if for example you only want the closest 3 items. |
@Salik, @TommyB, @IstuntmanI - do not use strlen for non-strings under any circumstances! If you pass a brand new array, strlen will return 0 and I don't think it would do any harm, the maxlen param ends its life in this function: https://sourcegraph.com/github.com/s...oArray#L92-108 but it certainly wouldn't do anything useful at all.
Use sizeof, it's even the default. You can also limit the amount of work done by using some value lower than sizeof if for example you only want the closest 3 items. |
new DynamicPickup:pickups[300], Float:x, Float:y, Float:z, id, pickuparray[2];
GetPlayerPos(playerid, x, y, z);
Streamer_GetNearbyItems(x, y, z, STREAMER_TYPE_PICKUP, pickups, 300, dist);
for(new p = 0; p < strlen(_:pickups); p++)
{
Streamer_GetArrayData(STREAMER_TYPE_PICKUP, pickups[p], E_STREAMER_EXTRA_ID, pickuparray);
//...
}
[14:28:02] strlen: 2 sizeof: 300
fixed your retard plugin
[sampgdk:warning] Index mismatch for OnPlayerStatsAndWeaponsUpdate (-10040 != -1003 [sampgdk:warning] Index mismatch for OnPlayerStatsAndWeaponsUpdate (-10040 != -1003 [sampgdk:warning] Index mismatch for OnPlayerStatsAndWeaponsUpdate (-10040 != -1003 [sampgdk:warning] Index mismatch for OnPlayerStatsAndWeaponsUpdate (-10040 != -1003 [sampgdk:warning] Index mismatch for OnPlayerStatsAndWeaponsUpdate (-10040 != -1003 [sampgdk:warning] Index mismatch for OnPlayerStatsAndWeaponsUpdate (-10040 != -1003 [sampgdk:warning] Index mismatch for OnPlayerStatsAndWeaponsUpdate (-10040 != -1003 [sampgdk:warning] Index mismatch for OnPlayerStatsAndWeaponsUpdate (-10040 != -1003 [sampgdk:warning] Index mismatch for OnPlayerStatsAndWeaponsUpdate (-10040 != -1003 [sampgdk:warning] Index mismatch for OnPlayerStatsAndWeaponsUpdate (-10040 != -1003 [sampgdk:warning] Index mismatch for OnPlayerStatsAndWeaponsUpdate (-10040 != -1003 [sampgdk:warning] Index mismatch for OnPlayerStatsAndWeaponsUpdate (-10040 != -1003 [sampgdk:warning] Index mismatch for OnPlayerStatsAndWeaponsUpdate (-10040 != -1003 [sampgdk:warning] Index mismatch for OnPlayerStatsAndWeaponsUpdate (-10040 != -1003 [sampgdk:warning] Index mismatch for OnPlayerStatsAndWeaponsUpdate (-10040 != -1003 [sampgdk:warning] Index mismatch for OnPlayerStatsAndWeaponsUpdate (-10040 != -1003 [sampgdk:warning] Index mismatch for OnPlayerStatsAndWeaponsUpdate (-10040 != -1003 [sampgdk:warning] Index mismatch for OnPlayerStatsAndWeaponsUpdate (-10040 != -1003 [sampgdk:warning] Index mismatch for OnPlayerStatsAndWeaponsUpdate (-10040 != -1003 |
fixed your retard plugin
[sampgdk:warning] Index mismatch for OnPlayerStatsAndWeaponsUpdate (-10040 != -1003 [sampgdk:warning] Index mismatch for OnPlayerStatsAndWeaponsUpdate (-10040 != -1003 [sampgdk:warning] Index mismatch for OnPlayerStatsAndWeaponsUpdate (-10040 != -1003 [sampgdk:warning] Index mismatch for OnPlayerStatsAndWeaponsUpdate (-10040 != -1003 [sampgdk:warning] Index mismatch for OnPlayerStatsAndWeaponsUpdate (-10040 != -1003 [sampgdk:warning] Index mismatch for OnPlayerStatsAndWeaponsUpdate (-10040 != -1003 [sampgdk:warning] Index mismatch for OnPlayerStatsAndWeaponsUpdate (-10040 != -1003 [sampgdk:warning] Index mismatch for OnPlayerStatsAndWeaponsUpdate (-10040 != -1003 [sampgdk:warning] Index mismatch for OnPlayerStatsAndWeaponsUpdate (-10040 != -1003 [sampgdk:warning] Index mismatch for OnPlayerStatsAndWeaponsUpdate (-10040 != -1003 [sampgdk:warning] Index mismatch for OnPlayerStatsAndWeaponsUpdate (-10040 != -1003 [sampgdk:warning] Index mismatch for OnPlayerStatsAndWeaponsUpdate (-10040 != -1003 [sampgdk:warning] Index mismatch for OnPlayerStatsAndWeaponsUpdate (-10040 != -1003 [sampgdk:warning] Index mismatch for OnPlayerStatsAndWeaponsUpdate (-10040 != -1003 [sampgdk:warning] Index mismatch for OnPlayerStatsAndWeaponsUpdate (-10040 != -1003 [sampgdk:warning] Index mismatch for OnPlayerStatsAndWeaponsUpdate (-10040 != -1003 [sampgdk:warning] Index mismatch for OnPlayerStatsAndWeaponsUpdate (-10040 != -1003 [sampgdk:warning] Index mismatch for OnPlayerStatsAndWeaponsUpdate (-10040 != -1003 [sampgdk:warning] Index mismatch for OnPlayerStatsAndWeaponsUpdate (-10040 != -1003 |
27 commits since version 2.9.1. Please release 2.9.2 regardless of the crash as some of the commits since 2.9.1 are serious bug fixes; and even if there is a crash bug in the plugin, it'll be there whether you release 2.9.2 or not. Please do this. Then once you find the crash after 2.9.2 you can make the version 2.9.2.1? Thoughts?
|