/exit command doesn't work
#1

pawn Код:
if(strcmp(cmd, "/exit", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            for(new i = 0; i <  sizeof(HouseInfo); i++)
            {
                //printf("House :%d",i);
                if (PlayerToPoint(3, playerid,HouseInfo[i][hExitx], HouseInfo[i][hExity], HouseInfo[i][hExitz]))
                {
                    if(HouseEntered[playerid] == i)
                    {
                        SetPlayerInterior(playerid,0);
                        SetPlayerPos(playerid,HouseInfo[i][hEntrancex],HouseInfo[i][hEntrancey],HouseInfo[i][hEntrancez]);
                        PlayerInfo[playerid][pInt] = 0;
                        PlayerInfo[playerid][pLocal] = 255;
                        SetCameraBehindPlayer(playerid);
                        SetPlayerVirtualWorld(playerid,0);
                        HouseEntered[playerid] = 255;
                        if(HouseInfo[i][hHel] == 1)
                        {
                            new Float:tempheal;
                            GetPlayerHealth(playerid,tempheal);
                            if(tempheal < 100.0)
                            {
                                SetPlayerHealth(playerid,100.0);
                            }
                        }
                        return 1;
                    }
                }
            }
Compiler doesn't find any errors, but it doesn't work when I try to exit a buyed house.
Reply


Messages In This Thread
/exit command doesn't work - by xemper - 19.01.2011, 12:48
Re: /exit command doesn't work - by armyoftwo - 19.01.2011, 13:33
Re: /exit command doesn't work - by Antonio [G-RP] - 19.01.2011, 13:35
Re: /exit command doesn't work - by armyoftwo - 19.01.2011, 13:36
Re: /exit command doesn't work - by xemper - 19.01.2011, 14:31
Re: /exit command doesn't work - by Joe Staff - 19.01.2011, 14:36
Re: /exit command doesn't work - by xemper - 19.01.2011, 14:37
Re: /exit command doesn't work - by Joe Staff - 19.01.2011, 14:39
Re: /exit command doesn't work - by Scenario - 19.01.2011, 14:42
Re: /exit command doesn't work - by xemper - 19.01.2011, 14:49

Forum Jump:


Users browsing this thread: 5 Guest(s)