array index out of bounds
#7

Quote:
Originally Posted by Hansrutger
Посмотреть сообщение
Right I forgot this already about enums lel.

https://sampforum.blast.hk/showthread.php?tid=318307

I'm not sure if it's going to solve your problem but basically setting this:
Код:
    HosSlot1 = 1, 
    HosSlot2 = 1, 
    HosSlot3 = 1, 
    HosSlot4 = 1, 
    HosSlot5 = 1, 
    HosSlot6 = 1
Means that you are assigning them all to the first position (well second). Like I said, this might not actually solve the array out of bound but it's just generally a bad idea to assign values to enum variables because you're not actually assigning values. Enum's are constants and act as "holders" for numbers.
Fixed Thanks for help . +REP
Reply


Messages In This Thread
array index out of bounds - by Pearson - 14.12.2016, 01:01
Re: array index out of bounds - by Hansrutger - 14.12.2016, 01:32
Re: array index out of bounds - by Pearson - 14.12.2016, 01:34
Re: array index out of bounds - by Unrea1 - 14.12.2016, 01:38
Re: array index out of bounds - by Pearson - 14.12.2016, 01:45
Re: array index out of bounds - by Hansrutger - 14.12.2016, 02:04
Re: array index out of bounds - by Pearson - 14.12.2016, 02:08

Forum Jump:


Users browsing this thread: 1 Guest(s)