Array index out of bounds -
Zex Tan - 03.08.2013
I got this error after following the MySQL script sample.
Код:
E:\San Andreas Multiplayer Server Files (Classified)\Castaway Island Roleplay\gamemodes\CI-RP.pwn(4210 -- 4214) : error 032: array index out of bounds (variable "PlayerInfo")
E:\San Andreas Multiplayer Server Files (Classified)\Castaway Island Roleplay\gamemodes\CI-RP.pwn(4219) : error 032: array index out of bounds (variable "PlayerInfo")
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
The lines at the "PlayerInfo" part.
Any solution for this ? Also, guide me please ^^
Re: Array index out of bounds -
Konstantinos - 03.08.2013
Is the
Pos in the enum with an array of 4?
Re: Array index out of bounds -
Ayumi - 03.08.2013
What did you exactly "follow"?
Also do you even have your MySQL database set up correctly? Does your script successfully connect to your MySQL server?
A link would be much graceful if provided so that we can help, as it looks like you followed a very undetailed tutorial.
Re: Array index out of bounds -
Zex Tan - 03.08.2013
Quote:
Originally Posted by _Zeus
Is the Pos in the enum with an array of 4?
|
Nope, Dwayne.
Re: Array index out of bounds -
Konstantinos - 03.08.2013
Quote:
Originally Posted by Zex Tan
Nope, Dwayne.
|
Inside the enum, you need to have an array of 4 (0-3) for the X, Y, Z, Angle.
Re: Array index out of bounds -
Zex Tan - 03.08.2013
Quote:
Originally Posted by _Zeus
Inside the enum, you need to have an array of 4 (0-3) for the X, Y, Z, Angle.
|
It works fine, but I found out that it didn't save into the MySQL database.
Код:
[22:15:49] [ERROR] CMySQLQuery::Execute[OnAccountCheck(d)] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM `users` WHERE `Name` = 'Steven Colt' LIMIT 1' at line 1
The line is around here
Re: Array index out of bounds -
sleepysnowflake - 03.08.2013
so you're telling me you're creating a RP with that knowledge? good luck.
Re: Array index out of bounds -
Konstantinos - 03.08.2013
You have an extra commas before AFTER.
Re: Array index out of bounds -
Zex Tan - 03.08.2013
Quote:
Originally Posted by _Zeus
You have an extra commas before AFTER.
|
Alright, thank you. FIXED