index out of bounds problem
Hello, i need help to repair this error
L 01/13/2021 - 13:33:44: [AMXX] Run time error 4: index out of bounds L 01/13/2021 - 13:33:44: [AMXX] [0] ranticheat.sma::Player_PostThink (line 479) Code:
public Player_PostThink( id ) {Code:
FPSToAverage[id][averagefpsnum[id]] = UserFPS[id]; |
Re: index out of bounds problem
Show how the variables are defined.
|
Re: index out of bounds problem
better yet show the full code.
since averagefpsnum has a possibility of returning an invalid cell id. |
Re: index out of bounds problem
1 Attachment(s)
Code:
new averagefpsnum[33]; |
Re: index out of bounds problem
Well, haven't you noticed that fps cand be over 100? And the second array is 32?
That s the problem.. set 32 to 102 and should compile. |
Re: index out of bounds problem
Im not a scripter so yes, i didn't notice it. I'll check if it works.
|
| All times are GMT -4. The time now is 14:06. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.