Posts: 1,801
Threads: 21
Joined: Mar 2008
Reputation:
0
From the looks this seems unlikely to produce the error as you are accessing index 0 which is definitely not out of bounds.
Could you share the code where you use it (maybe a few lines before and after)?
Posts: 1,506
Threads: 13
Joined: Jun 2015
Isn't this wrong??
PHP код:
wc_vehid = -1, /// Just a default value. Don't change this.
bool:wc_locked = false, /// Whether the car is locked or no. It's unlocked in default, don't change this.
Text3D:wc_3dlabel = -1, /// This is for attaching the "locked car" label into the car. It's -1 by default, don't change this.
Posts: 920
Threads: 113
Joined: Nov 2009
Reputation:
0
You can't initialize enumerators like that.
You need to assign a default value at runtime, preferrably at script init (OnGameModeInit / OnFilterScriptInit)
Posts: 38
Threads: 7
Joined: May 2013
Reputation:
0
Okay nvm fixed, the problem was in having those default values in the enum. Have no clue why it's buggy tho.