Help me please.

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

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

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).

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

Give us the code so we can help you

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

Show us the relevant code so we can help you.

Forum Jump:

Users browsing this thread: