House system help
#6

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & KEY_SECONDARY_ATTACK) // Key ENTER
        {
            for(new i=0; i < sizeof(HouseInfo); i++) //here the variable of the HouseInfo
            {
                if(IsPlayerInRangeOfPoint(playerid, 2, HouseInfo[i][hEX], HouseInfo[i][hEY], HouseInfo[i][hEZ])) //hEX, hEY, hEZ are the coordinate of the house entrance
                {
                    if(HouseInfo[i][hLocked] == 0) // the variable if the house is closed or not
                    {
                        SetPlayerPos(playerid, HouseInfo[i][hExX], HouseInfo[i][hExY], HouseInfo[i][hExZ]); // hExX, hExY, hExZ are the coordinates you will be set that are the coordinates of the Exit point from the house
                }
                }
            }
        }
return 1;
}
C:\Users\DELL\Desktop\TKA\filterscripts\GarHouse.p wn(349) : error 017: undefined symbol "i"

Plz i want fix now
Reply


Messages In This Thread
House system help - by Muhammad1 - 28.07.2013, 09:35
Re: House system help - by JimmyCh - 28.07.2013, 09:41
Re: House system help - by Muhammad1 - 28.07.2013, 09:49
Re: House system help - by Jstylezzz - 28.07.2013, 09:58
Re: House system help - by Sk1lleD - 28.07.2013, 11:45
Re: House system help - by Muhammad1 - 28.07.2013, 12:53
Re: House system help - by wumpyc - 28.07.2013, 13:37
Re: House system help - by Muhammad1 - 28.07.2013, 17:17

Forum Jump:


Users browsing this thread: 1 Guest(s)