[Tutorial] Using bit arrays in PAWN
#5

@ikey07 That shows up because MAX_PLAYERS is 500, and the Char-Array has a limit, if you go over than 255 it will give a Crash Detect warning which is

pawn Код:
[19:49:16] [debug] Run time error 4: "Array index out of bounds"
[19:49:16] [debug]  Accessing element at index 29 past array upper bound 28
So I'd suggest you re-define the MAX_PLAYERS to 255, if you want to use Char-Array

pawn Код:
#if (defined MAX_PLAYERS)
    #undef MAX_PLAYERS
    #define MAX_PLAYERS (255)
#endif
Char Array Limits: YOU must not go over 255 and lower than [b]0, also Char-Array uses Curly Braces ( { and }) )
Reply


Messages In This Thread
Using bit arrays in PAWN - by Emmet_ - 24.01.2014, 16:02
Re: Using bit arrays in PAWN - by Patrick - 24.01.2014, 16:12
Re: Using bit arrays in PAWN - by ikey07 - 24.01.2014, 16:43
Re: Using bit arrays in PAWN - by Emmet_ - 24.01.2014, 16:47
Re: Using bit arrays in PAWN - by Patrick - 24.01.2014, 16:51
Re: Using bit arrays in PAWN - by ikey07 - 24.01.2014, 17:21
Re: Using bit arrays in PAWN - by RaeF - 03.05.2015, 02:52
Re: Using bit arrays in PAWN - by Vince - 03.05.2015, 09:43

Forum Jump:


Users browsing this thread: 1 Guest(s)