SA-MP Forums

Go Back   SA-MP Forums > SA-MP Server > Server Support

Thread Tools Display Modes
Old 12/05/2018, 12:33 PM   #1
Big Clucker
Join Date: Nov 2016
Posts: 77
Reputation: 0
Default Player data problem

I use crashdetect to detect my problems, but I get this error:
PHP Code:
[debugRun time error 4"Array index out of bounds"
[debug]  Attempted to read/write array element at index 2 in array of size 2
[debugAMX backtrace:
debug#0 00062e8c in public OnLogin (0) from gm.amx 
which is strange because the mysql query is correct. Please help!

EDIT: I changed mysql to R41-4.
Yuri8 is offline   Reply With Quote
Old 16/05/2018, 07:17 AM   #2
GTLS's Avatar
Join Date: Aug 2014
Location: India
Posts: 878
Reputation: 92
Default Re: Player data problem

As it says, your declared array has size of 2 and you are trying to insert values at index [2] means 3rd value as index in array starts from 0. Increase the size of the array to solve the problem.

I don't help for rep. I help cuz I was helped in the past.

Some thing for ya. Click em
Basic House System

Simple Speedo

Retired from SAMP Scene. Might open SAMP Forums once in a while.
GTLS is offline   Reply With Quote

Thread Tools
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Phones that are not associated with the player data dusk Scripting Help 3 24/04/2015 03:03 PM
Saving player data problem ! Giroud12 Scripting Help 17 29/05/2013 07:18 AM
Problem with Player count packet data. hakre1 Scripting Help 3 03/09/2011 07:41 AM
Problem in saving Player data using dini. DJDhan Help Archive 22 22/07/2010 06:17 PM
Help - how to get data on the player in PHP X12X Help Archive 1 02/07/2009 03:03 PM

All times are GMT. The time now is 09:40 AM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.