11.10.2015, 17:21
Hi, can anybody tell me whats wrong.. when i compile i get this warning
This is the code
And this is the line where i get the warning
pawn Код:
C:\Users\Mikkel\Desktop\gf_oct15_2015.pwn(28733) : warning 213: tag mismatch
pawn Код:
if(strcmp(cmd, "/lockhouse", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pHouseAccepted] == 0)
{
SendClientMessage(playerid, COLOR_GRAD1, " You don't own a house !");
return 1;
}
if(!IsPlayerInRangeOfPoint(playerid, 2.0, PlayerInfo[playerid][pHouseX], PlayerInfo[playerid][pHouseY], PlayerInfo[playerid][pHouseZ] && PlayerInfo[playerid][pLocal] == 999))
{
SendClientMessage(playerid,COLOR_GREY," You are not at your house !");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
if(PlayerInfo[playerid][pHouseLocked] == 1)
{
PlayerInfo[playerid][pHouseLocked] = 0;
PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
format(string, sizeof(string), "* %s has unlocked the door to their house.", RemoveUnderScore(playerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
return 1;
}
else
{
PlayerInfo[playerid][pHouseLocked] = 1;
PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
format(string, sizeof(string), "* %s has locked the door to their house.", RemoveUnderScore(playerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
return 1;
}
}
return 1;
}
pawn Код:
if(!IsPlayerInRangeOfPoint(playerid, 2.0, PlayerInfo[playerid][pHouseX], PlayerInfo[playerid][pHouseY], PlayerInfo[playerid][pHouseZ] && PlayerInfo[playerid][pLocal] == 999))