OnPlayerUpPickup(+REP)
#5

Quote:
Originally Posted by [WSF]ThA_Devil
Посмотреть сообщение
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.
I'm having a hard time understanding you, O_O
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..
Reply


Messages In This Thread
OnPlayerPickUpPickup(+REP) - by Amit1998 - 25.07.2016, 10:04
Re: OnPlayerUpPickup(+REP) - by oMa37 - 25.07.2016, 10:25
Re: OnPlayerUpPickup(+REP) - by [WSF]ThA_Devil - 25.07.2016, 10:30
Re: OnPlayerUpPickup(+REP) - by Amit1998 - 25.07.2016, 10:31
Re: OnPlayerUpPickup(+REP) - by Amit1998 - 25.07.2016, 10:33
Re: OnPlayerUpPickup(+REP) - by ThatFag - 25.07.2016, 10:57
Re: OnPlayerUpPickup(+REP) - by Amit1998 - 25.07.2016, 11:02
Re: OnPlayerUpPickup(+REP) - by ThatFag - 25.07.2016, 11:09
Re: OnPlayerUpPickup(+REP) - by Amit1998 - 25.07.2016, 11:21
Re: OnPlayerUpPickup(+REP) - by Threshold - 25.07.2016, 11:28

Forum Jump:


Users browsing this thread: 3 Guest(s)