View Single Post
DarthMan
Veteran Member
Join Date: Aug 2011
Old 05-17-2018 , 12:54   Re: [ H3LP ] Check if player has any weapons
Reply With Quote #7

Quote:
Originally Posted by KliPPy View Post
Code:
i < MAX_WEAPON_SLOTS + 1
I believe you don't need that + 1.
That was it, many thanks ! I tought that I needed + 1 beucase there are slots from 1 to 7 so that the loop will end at 6. But I guess since slots are actually starting from 0 and slot1 is like 0 the - 1 wasn't needed. Was a bit confused due to how the binds were in the game.
DarthMan is offline