PDA

View Full Version : Tag mismatch


penaut
10/04/2017, 04:20 PM
if(IsPlayerInRangeOfPoint(playerid, 5.0, HouseInfo[h][hExitX], HouseInfo[h][hExitY], HouseInfo[h][hExitZ] && vw == HouseInfo[h][hInsideWorld])) return h;


DayRPG.pwn(7229) : warning 213: tag mismatch

jasperschellekens
10/04/2017, 04:29 PM
Show the houseinfo enum

penaut
10/04/2017, 04:35 PM
enum hInfo
{
hOwned,
hPrice,
hOwner[MAX_PLAYER_NAME],
hLocked,
hMoney,
Float:hEntranceX,
Float:hEntranceY,
Float:hEntranceZ,
Float:hEntranceA,
Float:hExitX,
Float:hExitY,
Float:hExitZ,
Float:hExitA,
hInt,
hWorld,
hInsideInt,
hInsideWorld,
hInsideIcon,
hOutsideIcon,
Text3D: hDLabel,
hWeapon1,
hWeapon2,
hWeapon3,
hWeapon4,
hWeapon5,
hWeapon6,
hWeapon7,
hWeapon8,
hWeapon9,
hWeapon10,
hAmmo1,
hAmmo2,
hAmmo3,
hAmmo4,
hAmmo5,
hAmmo6,
hAmmo7,
hAmmo8,
hAmmo9,
hAmmo10,
hOutsideWorld,
hOutsideInt,
hLSD,
hCocaine,
hMarijuana,
hMeth,
hEcstasy,
hHeroin,
hCrack,
HouseCP
}

Feynman
11/04/2017, 09:22 AM
if(IsPlayerInRangeOfPoint(playerid, 5.0, HouseInfo[h][hExitX], HouseInfo[h][hExitY], HouseInfo[h][hExitZ] && vw == HouseInfo[h][hInsideWorld])) return h;


to

if(IsPlayerInRangeOfPoint(playerid, 5.0, HouseInfo[h][hExitX], HouseInfo[h][hExitY], HouseInfo[h][hExitZ]) && vw == HouseInfo[h][hInsideWorld]) return h;

iLearner
11/04/2017, 09:24 AM
https://puu.sh/vgzSD/115ba3e293.png

Should be closed after HouseInfo[h][hExitZ] and before &&.