SA-MP Forums Archive
warning 213: tag mismatch - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: warning 213: tag mismatch (/showthread.php?tid=494587)



warning 213: tag mismatch - Phil_Cutcliffe - 14.02.2014

Having a major brain melt down after doing my new house system from ground up today lol.. What am I doing wrong here? My brain is so pooped out!

pawn Код:
for(new i = 0; i < sizeof(HouseInfo); i++)
        {
            if (PlayerToPoint(2.0, playerid,HouseInfo[i][hEnterX], HouseInfo[i][hEnterY], HouseInfo[i][hEnterZ]))
            {
                PlayerHouseX[playerid] = HouseInfo[i][hEnterX]; //warning 213: tag mismatch
                PlayerHouseY[playerid] = HouseInfo[i][hEnterY]; //warning 213: tag mismatch
                PlayerHouseZ[playerid] = HouseInfo[i][hEnterZ]; //warning 213: tag mismatch
                if(HouseInfo[i][hOwned] == 0 && AdminDuty[playerid] == 0)
                {
                    GameTextForPlayer(playerid, "~>~~r~Locked House~<~", 3000, 4);
                    return 1;
                }
                if(HouseInfo[i][hLocked] == 1 && PlayerInfo[playerid][pHouse1] != i)
                {
                    GameTextForPlayer(playerid, "~>~~r~Locked~<~", 3000, 4);
                    return 1;
                }
                if(HouseInfo[i][hLocked] == 1 && PlayerInfo[playerid][pHouse2] != i)
                {
                    GameTextForPlayer(playerid, "~>~~r~Locked~<~", 3000, 4);
                    return 1;
                }
                if(IsPlayerInAnyVehicle(playerid))
                {
                    return 0;
                }
                PlayerInfo[playerid][pInsideInterior] = 1;
                SetPlayerVirtualWorld(playerid, i);
                SetPlayerInterior(playerid, HouseInfo[i][EnterInterior]);
                SetPlayerPos(playerid, HouseInfo[i][hExitX], HouseInfo[i][hExitY], HouseInfo[i][hExitZ]);
                TogglePlayerControllable(playerid, 0);
                SetTimerEx("InteriorFreeze", 2000, false, "i", playerid);
                if(PlayerInfo[playerid][pHouse1] == i || PlayerInfo[playerid][pHouse2] == i && HouseInfo[i][hLocked] == 1)



Re: warning 213: tag mismatch - CuervO - 14.02.2014

Are PlayerHouse variables defined as floats?


Re: warning 213: tag mismatch - Phil_Cutcliffe - 14.02.2014

Quote:
Originally Posted by CuervO
Посмотреть сообщение
Are PlayerHouse variables defined as floats?
Wehey I was hoping you'd find my post! xD

Erm I don't think I did define them as floats..

OHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH LOL!!!!!

BRAINFART!!

Thankyou I just clicked! xD

Edit: I really do need to sleep more xD