array index out of bounds problem
#4

You must ensure that 'giveplayerid' is not less than 0, and does not exceed the value of 'MAX_PLAYERS'.

However, as far as I'm concerned, the line should be this:
pawn Код:
Banned[giveplayerid][USER_BANNED] = 1;
You are using the enum name in the third index.
pawn Код:
enum USER_BAN
When you should have been using 'USER_BANNED'.
Reply


Messages In This Thread
array index out of bounds problem - by ohmy - 22.12.2014, 08:20
Re: array index out of bounds problem - by Pottus - 22.12.2014, 08:23
Re: array index out of bounds problem - by ohmy - 22.12.2014, 08:37
Re: array index out of bounds problem - by Threshold - 22.12.2014, 09:11
Re: array index out of bounds problem - by ohmy - 22.12.2014, 09:18

Forum Jump:


Users browsing this thread: 1 Guest(s)