help with bracket
#10

You can check where the code stop by debug
pawn Code:
CMD:enter(playerid, params[])
{
    print("1");
    for(new i = 0; i < sizeof(Houses); i++)
    {
        print("2");
        if (PlayerToPoint(1.0, playerid,Houses[i][EnterX], Houses[i][EnterY], Houses[i][EnterZ]))
        {
            print("3");
            if(GetPlayerVirtualWorld(playerid) == Houses[i][EnterWorld])
            {
                print("4");
                if(PlayerInfo[playerid][pHouseKey] == i || Houses[i][Locked] == 0 || PlayerInfo[playerid][pAdmin] >= 1)
                {
                    print("5");
                    SetPlayerInterior(playerid,Houses[i][ExitInterior]);
                    SetPlayerPos(playerid,Houses[i][ExitX],Houses[i][ExitY],Houses[i][ExitZ]);
                    SetPlayerVirtualWorld(playerid,i);
                    SetPlayerFacingAngle(playerid,Houses[i][ExitAngle]);
                    GameTextForPlayer(playerid, "working", 5000, 1);
                }
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
help with bracket - by jaksimaksi - 01.08.2011, 18:38
Re: help with bracket - by sleepysnowflake - 01.08.2011, 18:48
Re: help with bracket - by Jafet_Macario - 01.08.2011, 18:51
AW: help with bracket - by jaksimaksi - 01.08.2011, 18:54
AW: help with bracket - by jaksimaksi - 01.08.2011, 19:15
Re: help with bracket - by sleepysnowflake - 01.08.2011, 19:17
AW: help with bracket - by jaksimaksi - 01.08.2011, 19:20
Re: help with bracket - by Kush - 01.08.2011, 19:23
AW: help with bracket - by jaksimaksi - 01.08.2011, 19:47
Re: help with bracket - by =WoR=Varth - 02.08.2011, 00:28

Forum Jump:


Users browsing this thread: 3 Guest(s)