[SOLVED] Warning 213: Tag mismatch -
Mariachi - 23.12.2009
I have a small/big problem, small because the house system works, big because i have multiple warnings. All these warnings are the same - tag mismatch, i know that is a problem with the first parameter but I until now I couldn't solve it. Well I need your help.
Код:
new string[256];
new houselocation[MAX_ZONE_NAME];
GetCoords2DZone(Houses[id][EnterX],Houses[id][EnterY], houselocation, MAX_ZONE_NAME);
format(string, sizeof(string), "This house is for sale!\nAddress: %d %s\nDescription: %s\nPrice: $%d%s",id,houselocation,Houses[id][Description],Houses[id][HousePrice]);
Update3DTextLabelText(Houses[id][PickupID],0x13b809FF,string);
Код:
enum HouseSystem
{
Description[128],
Owner[MAX_PLAYER_NAME],
Float:EnterX,
Float:EnterY,
Float:EnterZ,
EnterWorld,
EnterInterior,
Float:EnterAngle,
Float:ExitX,
Float:ExitY,
Float:ExitZ,
ExitInterior,
Float:ExitAngle,
Owned,
Rentable,
RentCost,
HousePrice,
Materials,
Drugs,
Money,
Locked,
PickupID,
};
new Houses[800][HouseSystem];
Any solutions are accepted as long as they work
Re: Warning 213: Tag mismatch - Problem -
MadeMan - 23.12.2009
On which line do you get the warning?
Re: Warning 213: Tag mismatch - Problem -
whitedragon - 23.12.2009
hmm but where is your location setted?
Re: Warning 213: Tag mismatch - Problem -
Mariachi - 23.12.2009
Код:
Update3DTextLabelText(Houses[id][PickupID],0x13b809FF,string);
Oups
Re: Warning 213: Tag mismatch - Problem -
MadeMan - 23.12.2009
In the enum it should be like this:
pawn Код:
...
Money,
Locked,
Text3D:PickupID
...
Re: Warning 213: Tag mismatch - Problem -
Mariachi - 23.12.2009
Thank you very much
Re: Warning 213: Tag mismatch - Problem -
Mariachi - 23.12.2009
I still have some problems with the same warning.
Код:
public SaveBusinesses()
{
new idx;
new File: file2;
while (idx < sizeof(Businesses))
{
new coordsstring[256];
format(coordsstring, sizeof(coordsstring), "%s|%s|%f|%f|%f|%d|%d|%f|%f|%f|%f|%d|%f|%d|%d|%d|%d|%d|%d|%d|%d|%d\n",
Businesses[idx][BusinessName],
Businesses[idx][Owner],
Businesses[idx][EnterX],
Businesses[idx][EnterY],
Businesses[idx][EnterZ],
Businesses[idx][EnterWorld],
Businesses[idx][EnterInterior],
Businesses[idx][EnterAngle],
Businesses[idx][ExitX],
Businesses[idx][ExitY],
Businesses[idx][ExitZ],
Businesses[idx][ExitInterior],
Businesses[idx][ExitAngle],
Businesses[idx][Owned],
Businesses[idx][Enterable],
Businesses[idx][BizPrice],
Businesses[idx][EntranceCost],
Businesses[idx][Till],
Businesses[idx][Locked],
Businesses[idx][BizType],
Businesses[idx][Products],
Businesses[idx][PickupID]); <---- This is the line
if(idx == 0)
{
file2 = fopen("Businesses/businesses.cfg", io_write);
}
else
{
file2 = fopen("Businesses/businesses.cfg", io_append);
}
fwrite(file2, coordsstring);
idx++;
fclose(file2);
}
return 1;
}
Код:
public LoadBusinesses()
{
new arrCoords[22][64];
new strFromFile2[256];
new File: file = fopen("EGRP/Businesses/businesses.cfg", io_read);
if (file)
{
new idx;
while (idx < sizeof(Businesses))
{
fread(file, strFromFile2);
split(strFromFile2, arrCoords, '|');
strmid(Businesses[idx][BusinessName], arrCoords[0], 0, strlen(arrCoords[0]), 255);
strmid(Businesses[idx][Owner], arrCoords[1], 0, strlen(arrCoords[1]), 255);
Businesses[idx][EnterX] = floatstr(arrCoords[2]);
Businesses[idx][EnterY] = floatstr(arrCoords[3]);
Businesses[idx][EnterZ] = floatstr(arrCoords[4]);
Businesses[idx][EnterWorld] = strval(arrCoords[5]);
Businesses[idx][EnterInterior] = strval(arrCoords[6]);
Businesses[idx][EnterAngle] = floatstr(arrCoords[7]);
Businesses[idx][ExitX] = floatstr(arrCoords[8]);
Businesses[idx][ExitY] = floatstr(arrCoords[9]);
Businesses[idx][ExitZ] = floatstr(arrCoords[10]);
Businesses[idx][ExitInterior] = strval(arrCoords[11]);
Businesses[idx][ExitAngle] = floatstr(arrCoords[12]);
Businesses[idx][Owned] = strval(arrCoords[13]);
Businesses[idx][Enterable] = strval(arrCoords[14]);
Businesses[idx][BizPrice] = strval(arrCoords[15]);
Businesses[idx][EntranceCost] = strval(arrCoords[16]);
Businesses[idx][Till] = strval(arrCoords[17]);
Businesses[idx][Locked] = strval(arrCoords[18]);
Businesses[idx][BizType] = strval(arrCoords[19]);
Businesses[idx][Products] = strval(arrCoords[20]);
Businesses[idx][PickupID] = strval(arrCoords[21]); <---- This is the line
Re: Warning 213: Tag mismatch - Problem -
MadeMan - 23.12.2009
Why do you need to save the "PickupID" to a file?
Re: Warning 213: Tag mismatch - Problem -
Mariachi - 23.12.2009
First time I used pickups not 3D texts, now I want to " advance " and by saving them it was easier because when you buy a house / business the pickup was updated instantly not after a server restart.
Re: Warning 213: Tag mismatch - Problem -
MadeMan - 23.12.2009
But you can still update them without saving it to file.