Help me please.
#1

Hello , i have a question , well im trying to make maps for my server and stuff but i added one mapping i made with textures it started giving me this:
Код:
[14:59:17] [debug] Run time error 4: "Array index out of bounds"
[14:59:17] [debug]  Accessing element at index 999 past array upper bound 500
[14:59:17] [debug] AMX backtrace:
[14:59:17] [debug] #0 0006caec in public OnPlayerStateChange () from PHRP23.amx
any ideas? it seems like server is running smooth but the mapping just isnt added

Thank you for helper +1 rep
Reply
#2

its bcz the array size is smaller than the values you are storing in that
Reply
#3

It's not problem in you map, it's problem in callback OnPlayerStateChange, you are trying to access element at index 999, on variable which have 500 indexes (probably some player variable, MAX_PLAYERS).
Reply
#4

so i should find a problem under ( max players) ?
Reply
#5

Give us the code so we can help you
Reply
#6

You should find problem under OnPlayerStateChange callback as i already said.
Reply
#7

Show us the relevant code so we can help you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)