Raised This Month: $ Target: $400
 0% 

[HELP] Index out of bonds.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Akshat
Senior Member
Join Date: Feb 2013
Location: India, Jaipur.
Old 01-27-2015 , 05:52   [HELP] Index out of bonds.
Reply With Quote #1

Am getting this error in server console in this plugin which I have attached on line 1514. Help ASAP!
Attached Files
File Type: sma Get Plugin or Get Source (cod_mw.sma - 505 views - 46.5 KB)
__________________
Learning Pawn [3% Complete!]
Akshat is offline
Send a message via Skype™ to Akshat
Akshat
Senior Member
Join Date: Feb 2013
Location: India, Jaipur.
Old 01-27-2015 , 07:24   Re: [HELP] Index out of bonds.
Reply With Quote #2

I have read that it is an easy-to-slove error, but don't know how to do it, help!
__________________
Learning Pawn [3% Complete!]
Akshat is offline
Send a message via Skype™ to Akshat
Obada
Senior Member
Join Date: Dec 2014
Location: Abu Dhabi
Old 01-27-2015 , 07:30   Re: [HELP] Index out of bonds.
Reply With Quote #3

Quote:
Originally Posted by ot_207 View Post
index out of bounds = an invalid vector cell has been used that goes over the maximum value of it.

EX:
PHP Code:
new vector[20// This means that you have 20 cellls and you can access them from 0 to 19
vector[0// WIll work
vector[2// Will work
vector[10// Will work
vector[19// Will work
vector[20// Will show index out of bounds
vector[50// Will show index out of bounds
vector[100// Will show index out of bounds 
Do the debug yourself. This is all the info you need.
Obada is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:45.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode