Array must be indexed error
#3

You dont have to give index, but in that case script will use more memory, but youll need to use index while calling that var
pawn Код:
new CityHallWasRobbedRecently[];

CityHallWasRobbedRecently[0]--;
And as VenomXNL said, first index starts with 0 not with 1, so if you have e.g 15 cityhalls, to change first one youll use index 0, to change 5th one Youll use index 4 etc...
Reply


Messages In This Thread
Array must be indexed error - by DarkLored - 25.11.2013, 02:34
Re: Array must be indexed error - by VenomXNL - 25.11.2013, 03:27
Re: Array must be indexed error - by CoaPsyFactor - 25.11.2013, 08:53
Re: Array must be indexed error - by DarkLored - 25.11.2013, 18:45

Forum Jump:


Users browsing this thread: 1 Guest(s)