25.07.2016, 10:33
Quote:
When you spawn the pickup, assign its id to a varriable. Probably pickupid == MoneyBags[<id here>][mbpickup].
To find an index (in the array) that is not used, simply loop through it, if the index is currently not used, create at the specific index. Then loop through them to find it. |
mind giving me an example ? Because I'm doing what you said(If I understood you correctly), yet it ain't working.
The array is in the size of the max_players, hence every player can have 1 bag. and when he drops the bag, it creates a pickup on MoneyBags[playerid][mbpickup], so it loops through the entire players and if the pickupid is that moneybag, it's supposed to do it, but its doing it regardless to the pickup..