Help me !!!
#1

I have in my gamemode (gtarp)
Код:
else if(newkeys & KEY_SECONDARY_FIRE)
    {
			for(new i = 0; i < sizeof(HouseInfo); i++)
			{
				if (IsPlayerInRangeOfPoint(playerid, 10,HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez]))
				{
					//printf("Found House :%d",i);
					if(PlayerInfo[playerid][pPhousekey] == i || HouseInfo[i][hLock] == 0)
					{
					    if(PlayerInfo[playerid][pWanted] == 0)
					    {
							SafeSetPlayerInterior(playerid,HouseInfo[i][hInt]);
							SetPlayerVirtualWorld(playerid,HouseInfo[i][hWorld]);
							SafeSetPlayerPos(playerid,HouseInfo[i][hExitx],HouseInfo[i][hExity],HouseInfo[i][hExitz]);
							GameTextForPlayer(playerid, "~w~Welcome Home", 5000, 1);
							PlayerInfo[playerid][pLocal] = i;
							PlayerInfo[playerid][pVirWorld] = HouseInfo[i][hWorld];
							HouseEntered[playerid] = i;
							PlayerInfo[playerid][pInteriorNr] = 39;
						}
						else
						{
							GameTextForPlayer(playerid, "~r~Criminals can't hide in houses!", 5000, 1);
							return 1;
						}
					}
					else
					{
						GameTextForPlayer(playerid, "~r~Locked", 5000, 1);
						return 1;
					}
				}
	}
But i cant enter with F whats wrong ?
Reply


Messages In This Thread
Help me !!! - by antsolen - 16.08.2011, 08:44
Re: Help me !!! - by Libra_PL - 16.08.2011, 08:47
Re: Help me !!! - by antsolen - 16.08.2011, 09:01
AW: Help me !!! - by samtey - 16.08.2011, 09:11
Re: AW: Help me !!! - by antsolen - 16.08.2011, 11:01
Re: Help me !!! - by =WoR=Varth - 16.08.2011, 12:08

Forum Jump:


Users browsing this thread: 1 Guest(s)