Thread
: [Solved]
[Help] Exception reported: Array index out-of-bounds
View Single Post
Dr.Mohammad
Senior Member
Join Date: Jan 2016
Location: CSGO Servers
12-28-2018 , 14:30 Re: [Help] Exception reported: Array index out-of-bounds
#
4
Quote:
Originally Posted by
Facksy
No, in his case, its
Code:
sizeof(PrimaryWeaponsList)-1
So it should be like that
Code:
int Primary = GetRandomInt(0, sizeof(PrimaryWeaponsList)-1);
thank you. worked!!
Dr.Mohammad
View Public Profile
Send a private message to Dr.Mohammad
Visit Dr.Mohammad's homepage!
Find More Posts by Dr.Mohammad