Do not try programming if you don't know what is it
I tried to create a consumable that when used, would turn into a random item. Everything is fine except that when using the consumable, the random item would replace my weapon instead of going into my inventory.
cool
Do not try programming if you don't know what is it
Inventory[i] = Manager.GameData.Items[0xa139];
Try writing 4 rather than i
Solvi (01-29-2019)
Its often best to not reply if you don't know what your talking about.
The problem is because you started the loop at index 0, when in reality... you should start at (index > 3), as the equipment occupies [0, 1 , 2, 3]
P.S. That code is larger than your future. JK <3... no hate... spread love.Code:for( var i = 4; i < inv.Length; i++) { }
Last edited by Demon; 01-29-2019 at 07:33 AM.
Nice