Pickup armour
#2

Quote:
Originally Posted by SilverStand
Посмотреть сообщение
Код:
public OnPlayerPickUpDynamicPickup(playerid, pickupid)
{
	for(new i = 1; i <= MAX_REGEN; i++)
        //...
}
You are accessing a value out of the array bounds.

ArmourRegen can only store 200 values (0-199) and MAX_REGEN is 200.

Change to
Код:
for(new i = 1; i < MAX_REGEN; i++)
Also, arrays start at 0 index, not sure if you intended to skip the first value of the array.
Код:
for(new i = 1; i < MAX_REGEN; i++)
Reply


Messages In This Thread
Pickup armour - by SilverStand - 26.12.2015, 12:55
Re: Pickup armour - by Larceny - 26.12.2015, 13:04
Re: Pickup armour - by SilverStand - 26.12.2015, 13:06

Forum Jump:


Users browsing this thread: 2 Guest(s)