PDA

View Full Version : House system


anou1
07/03/2014, 05:29 PM
Hi,

This is a part of my house system:

mysql_format(mysql, query, sizeof(query), "INSERT INTO `maisons` (`Proprietaire`, `Prix`, `Ouverte`,`Achetee`, `Location`, `PrixLocation`, `NombreLocataire`, `Coffre`, `entreeX` ,`entreeY`, `entreeZ`, `sortieX`, `sortieY`, `sortieZ`, `Interieur`, `World`, `Arme1`, `Munition1`, `Arme2`, `Munition2`,`Arme3`, `Munition3` ) VALUES ('%e', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%f', '%f', '%f', '%f', '%f', '%f', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d')",
mInfo[id][mProprietaire], mInfo[id][mPrix], mInfo[id][mOuverte], mInfo[id][mAchetee], mInfo[id][mLocation], mInfo[id][mPrixLocation], mInfo[id][mNombreLocataire], mInfo[id][mCoffre], mInfo[id][mEntreeX], mInfo[id][mEntreeY], mInfo[id][mEntreeZ],
mInfo[id][mSortieX], mInfo[id][mSortieY], mInfo[id][mSortieZ], mInfo[id][mInterieur], mInfo[id][World], 0, 0, 0, 0, 0, 0);


Errors:
Beta.pwn(2484 -- 2486) : warning 213: tag mismatch
Beta.pwn(2484 -- 2486) : error 032: array index out of bounds (variable "mInfo")

In my enum I have:

enum MINFORMATIONS // Maison
{
mProprietaire[MAX_PLAYER_NAME+1],
mPrix,
mOuverte,
mAchetee,
mLocation,
mPrixLocation,
mNombreLocataire,
mLocataire[MAX_PLAYER_NAME+1],
mCoffre,
Float:mEntreeX,
Float:mEntreeY,
Float:mEntreeZ,
Float:mSortieX,
Float:mSortieY,
Float:mSortieZ,
mInterieur,
mWorld,
mArme1,
mMunition1,
mArme2,
mMunition2,
mArme3,
mMunition3,
mModele,
}
new mInfo[MAX_MAISONS][MINFORMATIONS];


So my problem is the errors I have. Any solutions ?

Lajko1
07/03/2014, 07:23 PM
Mark the error lines?

anou1
07/03/2014, 10:41 PM
...
The code...
2484 first line
2485 second line
2486 third line

anou1
08/03/2014, 09:53 AM
No ideas ?
Thank you.


EDIT: Solved !