08.03.2016, 23:52
Trying to get this script working; however for every instance within this gamemode this "tag mismatch" warning comes up. I will show 1 example.
The warning
Happens at each of these lines
7059
7102
As always; whom ever helps will get +1 Rep.
Thanks in advance for your time.
PHP код:
CMD:lock(playerid, params[])
{
new vw = GetPlayerVirtualWorld(playerid);
if(PlayerInfo[playerid][HouseID] == 0) return SCM(playerid, COLOR_LIGHTRED, "You do not own a house.");
for(new h = 1; h < sizeof(HouseInfo); h++)
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, HouseInfo[h][hEntranceX], HouseInfo[h][hEntranceY], HouseInfo[h][hEntranceZ] && vw == HouseInfo[h][hWorld])) return h;
if(IsPlayerInRangeOfPoint(playerid, 5.0, HouseInfo[h][hEntranceX], HouseInfo[h][hEntranceY], HouseInfo[h][hEntranceZ]))
{
if(h == PlayerInfo[playerid][HouseID])
{
if(vw == HouseInfo[h][hWorld])
{
if(HouseInfo[h][hOwned] == 1)
{
if(HouseInfo[h][hLocked] == 1)
{
HouseInfo[h][hLocked] = 0;
GameTextForPlayer(playerid, "~w~house ~g~ UNLOCKED", 3000, 6);
PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
new file4[40];
format(file4, sizeof(file4), HPATH, h);
new INI:File = INI_Open(file4);
INI_SetTag(File,"data");
INI_WriteInt(File,"hLocked", HouseInfo[h][hLocked]);
INI_Close(File);
break;
}
else
{
HouseInfo[h][hLocked] = 1;
GameTextForPlayer(playerid, "~w~house ~r~ LOCKED", 3000, 6);
PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
new file4[40];
format(file4, sizeof(file4), HPATH, h);
new INI:File = INI_Open(file4);
INI_SetTag(File,"data");
INI_WriteInt(File,"hLocked", HouseInfo[h][hLocked]);
INI_Close(File);
break;
}
}
}
}
}
else
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, HouseInfo[h][hExitX], HouseInfo[h][hExitY], HouseInfo[h][hExitZ] && vw == HouseInfo[h][hInsideWorld])) return h;
if(IsPlayerInRangeOfPoint(playerid, 5.0, HouseInfo[h][hExitX], HouseInfo[h][hExitY], HouseInfo[h][hExitZ]))
{
if(h == PlayerInfo[playerid][HouseID])
{
if(vw == HouseInfo[h][hInsideWorld])
{
if(HouseInfo[h][hOwned] == 1)
{
if(HouseInfo[h][hLocked] == 1)
{
HouseInfo[h][hLocked] = 0;
GameTextForPlayer(playerid, "~w~house ~g~ UNLOCKED", 3000, 6);
PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
new file4[40];
format(file4, sizeof(file4), HPATH, h);
new INI:File = INI_Open(file4);
INI_SetTag(File,"data");
INI_WriteInt(File,"hLocked", HouseInfo[h][hLocked]);
INI_Close(File);
break;
}
else
{
HouseInfo[h][hLocked] = 1;
GameTextForPlayer(playerid, "~w~house ~r~ LOCKED", 3000, 6);
PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
new file4[40];
format(file4, sizeof(file4), HPATH, h);
new INI:File = INI_Open(file4);
INI_SetTag(File,"data");
INI_WriteInt(File,"hLocked", HouseInfo[h][hLocked]);
INI_Close(File);
break;
}
}
}
}
}
}
}
return 1;
}
Код:
(7059) : warning 213: tag mismatch (7102) : warning 213: tag mismatch
7059
PHP код:
if(IsPlayerInRangeOfPoint(playerid, 5.0, HouseInfo[h][hEntranceX], HouseInfo[h][hEntranceY], HouseInfo[h][hEntranceZ] && vw == HouseInfo[h][hWorld])) return h;
PHP код:
if(IsPlayerInRangeOfPoint(playerid, 5.0, HouseInfo[h][hExitX], HouseInfo[h][hExitY], HouseInfo[h][hExitZ] && vw == HouseInfo[h][hInsideWorld])) return h;
Thanks in advance for your time.