Forum
Search
Members
Help
Hello There, Guest!
Login
Username:
Password:
Lost Password?
Remember me
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help
Threaded Mode
Array index out of bounds
raizo
Little Clucker
Posts: 34
Threads: 9
Joined: Sep 2014
Reputation:
0
#1
05.08.2017, 15:31
(
Последний раз редактировалось raizo; 05.08.2017 в 17:48.
)
FIXED. Close please.
Find
Reply
ISmokezU
Gangsta
Posts: 542
Threads: 14
Joined: Aug 2016
Reputation:
0
#2
05.08.2017, 15:54
Attempted to read/write array element at index 818 in array of size 800
Maybe if you have this
PHP код:
#define MAX_HOUSES (800)
Change it to:
PHP код:
#define MAX_HOUSES (1000)
Find
Reply
Vince
Spam Machine
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
#3
05.08.2017, 16:23
Do not use the primary key as the array index. Auto generated ids do not get re-used and as houses get added and removed those ids will eventually all exceed the array size.
Find
Reply
raizo
Little Clucker
Posts: 34
Threads: 9
Joined: Sep 2014
Reputation:
0
#4
05.08.2017, 17:48
Thank you both, it has been fixed. +REP
Find
Reply
«
Next Oldest
|
Next Newest
»
View a Printable Version
Forum Jump:
Private Messages
User Control Panel
Who's Online
Search
Forum Home
SA-MP
-- News and Updates
-- General
-- Client Support
-- Bug Reports
-- Screenshots and Videos
SA-MP Server
-- Server Support
-- Server Advertisements
SA-MP Scripting and Plugins
-- Scripting Help
---- Tutorials
---- Discussion
---- Help Archive
-- Gamemode Scripts
-- Filterscripts
---- Includes
---- Tools and Files
---- Maps
-- Plugin Development
SA-MP DL Edition
-- SA-MP 0.3.DL
---- Model Releases
Other
-- Everything and Nothing
Non-English
-- Languages
---- Nederlands/Dutch
------ Scripting Showroom en Discussie
------ Off topic
---- Español/Spanish
------ Lanzamientos/Releases
---- Français/French
------ Showroom
---- Русский/Russian
------ Релизы/Releases
---- Português/Portuguese
------ Lançamentos/Releases
---- Română/Romanian
------ Salonul Scripturilor
---- Archive
Users browsing this thread: 1 Guest(s)
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help