SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 12/05/2018, 11:33 AM   #1
Yuri8
Big Clucker
 
Join Date: Nov 2016
Posts: 72
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, 06:17 AM   #2
GTLS
Huge Clucker
 
GTLS's Avatar
 
Join Date: Aug 2014
Location: India
Posts: 483
Reputation: 68
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.
GTLS is online now   Reply With Quote
Reply

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 02:03 PM
Saving player data problem ! Giroud12 Scripting Help 17 29/05/2013 06:18 AM
Problem with Player count packet data. hakre1 Scripting Help 3 03/09/2011 06:41 AM
Problem in saving Player data using dini. DJDhan Help Archive 22 22/07/2010 05:17 PM
Help - how to get data on the player in PHP X12X Help Archive 1 02/07/2009 02:03 PM


All times are GMT. The time now is 04:50 AM.


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