House system
#1

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 ?
Reply
#2

Mark the error lines?
Reply
#3

...
The code...
2484 first line
2485 second line
2486 third line
Reply
#4

No ideas ?
Thank you.


EDIT: Solved !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)