Posts: 283
Threads: 67
Joined: Jun 2015
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