ZCMD problem
#1

pawn Код:
CMD:view(playerid,params[])
{
    for(new i = 0; i < sizeof(HouseInfo); i++)
    {
        if (IsPlayerInRangeOfPoint(playerid, 3.0, HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez]) && HouseInfo[i][hOwned] != 1)
        {
            if(PlayerInfo[playerid][pMoneyH] >= HouseInfo[i][hValue])
            {
                SetPlayerInterior(playerid,HouseInfo[i][hInt]);
                SetPlayerVirtualWorld(playerid,HouseInfo[i][hWorld]);
                SetPlayerPos(playerid,HouseInfo[i][hExitx],HouseInfo[i][hExity],HouseInfo[i][hExitz]);
                GameTextForPlayer(playerid, "~r~/exit at any time", 5000, 1);
                PlayerInfo[playerid][pInt] = HouseInfo[i][hInt];
                PlayerInfo[playerid][pLocal] = i;
                HouseEntered[playerid] = i;
            }
            else return SendClientMessage(playerid,COLOR_GREY,"You dont have moeny with you.");
        }
        else return SendClientMessage(playerid,COLOR_GREY,"You are not at buyable house.");
    }
    return 1;
}
Command all the time is showing that im not at house..
Reply


Messages In This Thread
ZCMD problem - by GaGlets(R) - 02.08.2010, 16:40
Re: ZCMD problem - by Dudits - 02.08.2010, 16:42
Re: ZCMD problem - by GaGlets(R) - 02.08.2010, 16:44
Re: ZCMD problem - by Kar - 02.08.2010, 16:55
Re: ZCMD problem - by GaGlets(R) - 02.08.2010, 17:03
Re: ZCMD problem - by GaGlets(R) - 02.08.2010, 19:30

Forum Jump:


Users browsing this thread: 3 Guest(s)