array index out of bounds
#9

Quote:
Originally Posted by Viggo
Посмотреть сообщение
Okay nvm fixed, the problem was in having those default values in the enum. Have no clue why it's buggy tho.
You can't assign default values to enums, instead use a loop when the gamemode starts, and assign every single array to whatever value you like.

pawn Код:
#define MAX_WEEKEND_CARS 50

public OnGameModeInit(){
    for(new i; i < MAX_WEEKEND_CARS; i++){
        wcInfo[i][wc_vehid] = -1;
        wcInfo[i][wc_3dlabel] = -1;
    }
    return 1;
}
And a boolean without a value is always false, no need to change that.
Reply


Messages In This Thread
array index out of bounds - by Viggo - 02.04.2019, 13:40
Re: array index out of bounds - by NaS - 02.04.2019, 14:01
Re: array index out of bounds - by Logic_ - 02.04.2019, 14:34
Re: array index out of bounds - by Viggo - 02.04.2019, 14:59
Re: array index out of bounds - by JesterlJoker - 02.04.2019, 15:58
Re: array index out of bounds - by RedFusion - 02.04.2019, 16:32
Re: array index out of bounds - by Viggo - 02.04.2019, 17:33
Re: array index out of bounds - by Viggo - 02.04.2019, 17:45
Re: array index out of bounds - by TheToretto - 02.04.2019, 18:06

Forum Jump:


Users browsing this thread: 2 Guest(s)