SA-MP Forums Archive
Help me !!! - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help me !!! (/showthread.php?tid=277049)



Help me !!! - antsolen - 16.08.2011

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 ?


Re: Help me !!! - Libra_PL - 16.08.2011

Errr, try with other keys? (if you changed configuration)?


Re: Help me !!! - antsolen - 16.08.2011

Quote:
Originally Posted by Libra_PL
Посмотреть сообщение
Errr, try with other keys? (if you changed configuration)?
Lol already , tryed , still not working ..


AW: Help me !!! - samtey - 16.08.2011

Is it under OnPlayerKeyState?


Re: AW: Help me !!! - antsolen - 16.08.2011

Quote:
Originally Posted by samtey
Посмотреть сообщение
Is it under OnPlayerKeyState?
Yes it is


Re: Help me !!! - =WoR=Varth - 16.08.2011

Try this:
pawn Код:
if(newkeys & KEY_SECONDARY_FIRE)//remove else