19.11.2011, 23:12 
	(
 Последний раз редактировалось Admigo; 20.11.2011 в 06:22.
)
	
	
		Heey all,
I made a lock house variable:
//createhouse command
//enterhousecommand
Its not working because if i use the enter command and house is locked i am in house.
And if i switch the variables to:
Its working.
How can i fix it?
	
	
	
I made a lock house variable:
//createhouse command
Код:
hInfo[h][Locked] = 1; INI_WriteInt(file, "Locked", 1);
Код:
if(hInfo[houseid][Locked] == 1)
	{
	    SendClientMessage(playerid,COLOR_RED,"This house is locked!");
	}
	if(hInfo[houseid][Locked] == 0)
	{
	    new _int = hInfo[houseid][HouseInterior];
		SetPVarInt(playerid, "IsInHouse", 1), IsInHouse{playerid} = 1;
		SetPlayerPosEx(playerid, hIntInfo[_int][IntSpawnX], hIntInfo[_int][IntSpawnY], hIntInfo[_int][IntSpawnZ], hIntInfo[_int][IntInterior], (houseid + 1000));
		SetPlayerFacingAngle(playerid, hIntInfo[_int][IntSpawnAngle]);
	}
And if i switch the variables to:
Код:
if(hInfo[houseid][Locked] == 0)
	{
	    SendClientMessage(playerid,COLOR_RED,"This house is locked!");
	}
	if(hInfo[houseid][Locked] == 1)
	{
	    new _int = hInfo[houseid][HouseInterior];
		SetPVarInt(playerid, "IsInHouse", 1), IsInHouse{playerid} = 1;
		SetPlayerPosEx(playerid, hIntInfo[_int][IntSpawnX], hIntInfo[_int][IntSpawnY], hIntInfo[_int][IntSpawnZ], hIntInfo[_int][IntInterior], (houseid + 1000));
		SetPlayerFacingAngle(playerid, hIntInfo[_int][IntSpawnAngle]);
	}
How can i fix it?








