Код:
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);
Beta.pwn(2484 -- 2486) : error 032: array index out of bounds (variable "mInfo")
Код:
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 ?
...
The code...