14.02.2014, 00:17
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)