Big Problem (tag mismatch) -
RaulSTARs - 29.05.2012
Hello , today I put an Dealership in my GameMode and after.. gave A LOT of warnings
I put only 4 examples , because are 100 (I think) and with same functions
(12014) : warning 213: tag mismatch
(12015) : warning 213: tag mismatch
(12016) : warning 213: tag mismatch
(12017) : warning 213: tag mismatch
Код:
CarInfo[carid][cLocationx] = X;
CarInfo[carid][cLocationy] = Y;
CarInfo[carid][cLocationz] = Z;
CarInfo[carid][cAngle] = A;
All 4 lines.
How can I fix ?
Re: Big Problem (tag mismatch) -
JaKe Elite - 29.05.2012
cLocationx
cLocationy
cLocationz
cAngle
is not float change
pawn Код:
enum cInfo
{
cLocationx,
cLocationy,
cLocationz,
cAngle
};
new CarInfo[MAX_VEHICLES][cInfo];
to
pawn Код:
enum cInfo
{
Float:cLocationx,
Float:cLocationy,
Float:cLocationz,
Float:cAngle
};
new CarInfo[MAX_VEHICLES][cInfo];
Re: Big Problem (tag mismatch) -
RaulSTARs - 29.05.2012
Thank you so much , but now I have another warning
(1662) : warning 235: public function lacks forward declaration (symbol "SaveCars")
Line :
Код:
public SaveCars()
{
new idx;
new File: file2;
while (idx < sizeof(CarInfo))
{
new coordsstring[256];
format(coordsstring, sizeof(coordsstring), "%d,%f,%f,%f,%f,%d,%d,%s,%s,%d,%s,%d,%d\n",
CarInfo[idx][cModel],
CarInfo[idx][cLocationx],
CarInfo[idx][cLocationy],
CarInfo[idx][cLocationz],
CarInfo[idx][cAngle],
CarInfo[idx][cColorOne],
CarInfo[idx][cColorTwo],
CarInfo[idx][cOwner],
CarInfo[idx][cDescription],
CarInfo[idx][cValue],
CarInfo[idx][cLicense],
CarInfo[idx][cOwned],
CarInfo[idx][cLock],
CarInfo[idx][cComponent0],
CarInfo[idx][cComponent1],
CarInfo[idx][cComponent2],
CarInfo[idx][cComponent3],
CarInfo[idx][cComponent4],
CarInfo[idx][cComponent5],
CarInfo[idx][cComponent6],
CarInfo[idx][cComponent7],
CarInfo[idx][cComponent8],
CarInfo[idx][cComponent9],
CarInfo[idx][cComponent10],
CarInfo[idx][cComponent11],
CarInfo[idx][cComponent12],
CarInfo[idx][cComponent13],
CarInfo[idx][cPaintjob]);
if(idx == PersonalCarID)
{
file2 = fopen("cfg/cars.cfg", io_write);
}
else
{
file2 = fopen("cfg/cars.cfg", io_append);
}
fwrite(file2, coordsstring);
idx++;
fclose(file2);
}
return 1;
}
Line 1662 start with public
Re: Big Problem (tag mismatch) -
MP2 - 29.05.2012
Change 'public' to 'stock'.
Re: Big Problem (tag mismatch) -
RaulSTARs - 29.05.2012
Thank you.