SA-MP Forums Archive
Problem with house system - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem with house system (/showthread.php?tid=339007)



Problem with house system - thebwgg - 01.05.2012

Hi.

I use Antironix's house system, and i found more errors :
Код:
[debug] Run time error 4: "Array index out of bounds"
[debug] Accessing element at index 1029 past array upper bound 1028
[debug] Backtrace:
[debug] #0 00021540 in public houseup () from new2.amx
[debug] Run time error 4: "Array index out of bounds"
[debug] Accessing element at index 1029 past array upper bound 1028
[debug] Backtrace:
[debug] #0 00021540 in public houseup () from new2.amx
[debug] Run time error 4: "Array index out of bounds"
[debug] Accessing element at index 1029 past array upper bound 1028
[debug] Backtrace:
[debug] #0 00021540 in public houseup () from new2.amx
[debug] Run time error 4: "Array index out of bounds"
[debug] Accessing element at index 1029 past array upper bound 1028
[debug] Backtrace:
[debug] #0 00021540 in public houseup () from new2.amx
[debug] Run time error 4: "Array index out of bounds"
[debug] Accessing element at index 1029 past array upper bound 1028
[debug] Backtrace:
[debug] #0 00021540 in public houseup () from new2.amx
[debug] Run time error 4: "Array index out of bounds"
[debug] Accessing element at index 1029 past array upper bound 1028
[debug] Backtrace:
[debug] #0 00021540 in public houseup () from new2.amx
[debug] Run time error 4: "Array index out of bounds"
[debug] Accessing element at index 1029 past array upper bound 1028
[debug] Backtrace:
[debug] #0 00021540 in public houseup () from new2.amx
[debug] Run time error 4: "Array index out of bounds"
[debug] Accessing element at index 1029 past array upper bound 1028
[debug] Backtrace:
[debug] #0 00021540 in public houseup () from new2.amx
[debug] Run time error 4: "Array index out of bounds"
[debug] Accessing element at index 1029 past array upper bound 1028
[debug] Backtrace:
[debug] #0 00021540 in public houseup () from new2.amx
[debug] Run time error 4: "Array index out of bounds"
[debug] Accessing element at index 1029 past array upper bound 1028
[debug] Backtrace:
[debug] #0 00021540 in public houseup () from new2.amx
[debug] Run time error 4: "Array index out of bounds"
[debug] Accessing element at index 1029 past array upper bound 1028
[debug] Backtrace:
[debug] #0 00021540 in public houseup () from new2.amx
[debug] Run time error 4: "Array index out of bounds"
[debug] Accessing element at index 1029 past array upper bound 1028
[debug] Backtrace:
[debug] #0 00021540 in public houseup () from new2.amx
[debug] Run time error 4: "Array index out of bounds"
[debug] Accessing element at index 1029 past array upper bound 1028
[debug] Backtrace:
[debug] #0 00021540 in public houseup () from new2.amx
[debug] Run time error 4: "Array index out of bounds"
[debug] Accessing element at index 1029 past array upper bound 1028
[debug] Backtrace:
[debug] #0 00021540 in public houseup () from new2.amx
[debug] Run time error 4: "Array index out of bounds"
[debug] Accessing element at index 1029 past array upper bound 1028
[debug] Backtrace:
[debug] #0 00021540 in public houseup () from new2.amx
[debug] Run time error 4: "Array index out of bounds"
[debug] Accessing element at index 1029 past array upper bound 1028
[debug] Backtrace:
[debug] #0 00021540 in public houseup () from new2.amx
[debug] Run time error 4: "Array index out of bounds"
[debug] Accessing element at index 1029 past array upper bound 1028
[debug] Backtrace:
[debug] #0 00021540 in public houseup () from new2.amx
[debug] Run time error 4: "Array index out of bounds"
[debug] Accessing element at index 1029 past array upper bound 1028
[debug] Backtrace:
[debug] #0 00021540 in public houseup () from new2.amx
[debug] Run time error 4: "Array index out of bounds"
[debug] Accessing element at index 1029 past array upper bound 1028
[debug] Backtrace:
[debug] #0 00021540 in public houseup () from new2.amx
[debug] Run time error 4: "Array index out of bounds"
[debug] Accessing element at index 1029 past array upper bound 1028
[debug] Backtrace:
[debug] #0 00021540 in public houseup () from new2.amx
[debug] Run time error 4: "Array index out of bounds"
[debug] Accessing element at index 1029 past array upper bound 1028
[debug] Backtrace:
[debug] #0 00021540 in public houseup () from new2.amx
[debug] Run time error 4: "Array index out of bounds"
[debug] Accessing element at index 1029 past array upper bound 1028
[debug] Backtrace:
[debug] #0 00021540 in public houseup () from new2.amx
[debug] Run time error 4: "Array index out of bounds"
[debug] Accessing element at index 1029 past array upper bound 1028
[debug] Backtrace:
[debug] #0 00021540 in public houseup () from new2.amx
[debug] Run time error 4: "Array index out of bounds"
[debug] Accessing element at index 1029 past array upper bound 1028
[debug] Backtrace:
[debug] #0 00021540 in public houseup () from new2.amx
[debug] Run time error 4: "Array index out of bounds"
[debug] Accessing element at index 1029 past array upper bound 1028
[debug] Backtrace:
[debug] #0 00021540 in public houseup () from new2.amx
[debug] Run time error 4: "Array index out of bounds"
[debug] Accessing element at index 1029 past array upper bound 1028
[debug] Backtrace:
[debug] #0 00021540 in public houseup () from new2.amx
[debug] Run time error 4: "Array index out of bounds"
[debug] Accessing element at index 1029 past array upper bound 1028
[debug] Backtrace:
[debug] #0 00021540 in public houseup () from new2.amx
[debug] Run time error 4: "Array index out of bounds"
[debug] Accessing element at index 1029 past array upper bound 1028
[debug] Backtrace:
[debug] #0 00021540 in public houseup () from new2.amx
[debug] Run time error 4: "Array index out of bounds"
[debug] Accessing element at index 1029 past array upper bound 1028
[debug] Backtrace:
[debug] #0 00021540 in public houseup () from new2.amx
[debug] Run time error 4: "Array index out of bounds"
[debug] Accessing element at index 1029 past array upper bound 1028
[debug] Backtrace:
[debug] #0 00021540 in public houseup () from new2.amx
[debug] Run time error 4: "Array index out of bounds"
[debug] Accessing element at index 1029 past array upper bound 1028
[debug] Backtrace:
[debug] #0 00021540 in public houseup () from new2.amx
[debug] Run time error 4: "Array index out of bounds"
[debug] Accessing element at index 1029 past array upper bound 1028
[debug] Backtrace:
[debug] #0 00021540 in public houseup () from new2.amx
[debug] Run time error 4: "Array index out of bounds"
[debug] Accessing element at index 1029 past array upper bound 1028
[debug] Backtrace:
[debug] #0 00021540 in public houseup () from new2.amx
[debug] Run time error 4: "Array index out of bounds"
[debug] Accessing element at index 1029 past array upper bound 1028
[debug] Backtrace:
[debug] #0 00021540 in public houseup () from new2.amx
[debug] Run time error 4: "Array index out of bounds"
[debug] Accessing element at index 1029 past array upper bound 1028
[debug] Backtrace:
[debug] #0 00021540 in public houseup () from new2.amx
[debug] Run time error 4: "Array index out of bounds"
[debug] Accessing element at index 1029 past array upper bound 1028
[debug] Backtrace:
[debug] #0 00021540 in public houseup () from new2.amx
[debug] Run time error 4: "Array index out of bounds"
[debug] Accessing element at index 1029 past array upper bound 1028
[debug] Backtrace:
[debug] #0 00021540 in public houseup () from new2.amx
[debug] Run time error 4: "Array index out of bounds"
[debug] Accessing element at index 1029 past array upper bound 1028
[debug] Backtrace:
[debug] #0 00021540 in public houseup () from new2.amx
[debug] Run time error 4: "Array index out of bounds"
[debug] Accessing element at index 1029 past array upper bound 1028
[debug] Backtrace:
[debug] #0 00021540 in public houseup () from new2.amx
[debug] Run time error 4: "Array index out of bounds"
[debug] Accessing element at index 1029 past array upper bound 1028
[debug] Backtrace:
[debug] #0 00021540 in public houseup () from new2.amx
[debug] Run time error 4: "Array index out of bounds"
[debug] Accessing element at index 1029 past array upper bound 1028
[debug] Backtrace:
[debug] #0 00021540 in public houseup () from new2.amx
I download the house system standard, no edited, and i put all AddHouse from my system.

When i enter on the server, the house not appear.

What is the problem ?


Re: Problem with house system - Baboon - 01.05.2012

Perhaps the array seize is too small of a variable.
Like you have an array of 50 cells, but loop through 60 cells.


Re: Problem with house system - thebwgg - 01.05.2012

Quote:
Originally Posted by Strawhats
Посмотреть сообщение
Perhaps the array seize is too small of a variable.
Like you have an array of 50 cells, but loop through 60 cells.
How I can solve this problem ?


Re: Problem with house system - Ash. - 01.05.2012

Quote:
Originally Posted by thebwgg
Посмотреть сообщение
How I can solve this problem ?
By increasing the array size. Arrays are shown with the declaration of a variable name, proceeded by two square brackets ("[]"). The number in these brackets shows its size. You have an array that is (appears to be) two slots too small for the data that the script is trying to loop through. Try increasing the size of the maximum house array, or at least try to find out which array is causing the overflow.