HELP ME
#1

[12] [debug] Run time error 4: "Array index out of bounds"
[16:03:12] [debug] Accessing element at index 17 past array upper bound 16
[16:03:12] [debug] AMX backtrace:
[16:03:12] [debug] #0 003db918 in public OnLoadFamilies () from Main.amx
[16:03:12] [Family Points] 8 family points has been loaded.


stock LoadFamilies()
{
printf("[LoadFamilies] Loading data from database...");
mysql_function_query(MainPipeline, "SELECT * FROM `families`", true, "OnLoadFamilies", "");
}
Reply
#2

*Accessing element at index 17 past array upper bound 16 !
Reply
#3

Go check your family list on database and see how many families are on table. You are trying to access an element upper array bounds.
Reply
#4

I cant understand you both, do you guys got teamviewer?
Reply
#5

Its not LoadFamily, its OnLoadFamily. Compile with debug symbols to get the exact line, should be obvious then.
Reply
#6

I fixed my problem due to rinori, +1 REP from me.
Reply
#7

I have one more problem with the script, when i click on "Male after gender selection", it sometimes work then it dosent, when i click on "male", it stucks on it and not show month or anything, it's ngrp custom edit and it dosent show any errors on server log can you help me with that?
Reply
#8

Quote:
Originally Posted by Furqan
Посмотреть сообщение
I have one more problem with the script, when i click on "Male after gender selection", it sometimes work then it dosent, when i click on "male", it stucks on it and not show month or anything, it's ngrp custom edit and it dosent show any errors on server log can you help me with that?
Well, you need to try to debug it by yourself. Try to find why it is being stuck, is there any error? Also, we can't just assume about the solution if we have no idea what the code looks like.
Reply
#9

PHP код:
Accessing element at index 17 past array upper bound 16

example
:
new 
test[12];

test[0] = 0//ok
test[1] = 0;
...
test[11] = 0//ok
test[12] = 0//crash

look
new test[12]; //variable test has 12 indexes
//indexes: 0, 1, 2, ..., 11 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)