SA-MP Forums Archive
ZCMD problem - 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: ZCMD problem (/showthread.php?tid=164917)



ZCMD problem - GaGlets(R) - 02.08.2010

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..


Re: ZCMD problem - Dudits - 02.08.2010

Try changing "HouseEntered[playerid] = i;" with "HouseEntered[playerid] = 1;"
Dunno, might not work.


Re: ZCMD problem - GaGlets(R) - 02.08.2010

Quote:
Originally Posted by Dudits
Посмотреть сообщение
Try changing "HouseEntered[playerid] = i;" with "HouseEntered[playerid] = 1;"
Dunno, might not work.
Lol..
That command even dont goes so far..


Re: ZCMD problem - Kar - 02.08.2010

is the house owned-.0


Re: ZCMD problem - GaGlets(R) - 02.08.2010

oh cant see continue..

pawn Код:
HouseInfo[i][hOwned] != 1
Lol fail.. can..

ahm i tried to stand at bought house


Re: ZCMD problem - GaGlets(R) - 02.08.2010

anyone ?