Wrong Virtual World
#9

my guess to why it doesn't work is because it doesn't return a value.
pawn Код:
if(strcmp(cmd, "/exit", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        for(new i = 0; i < sizeof(HouseInfo); i++)
        {
            //printf("House :%d",i);
            if(GetPlayerVirtualWorld(playerid) == HouseInfo[i][hWorld])
            {
                if (PlayerToPoint(3, playerid,HouseInfo[i][hExitx], HouseInfo[i][hExity], HouseInfo[i][hExitz]))
                {
                    SetPlayerVirtualWorld(playerid,0);
                    SetPlayerInterior(playerid,0);
                    SetPlayerPos(playerid,HouseInfo[i][hEntrancex],HouseInfo[i][hEntrancey],HouseInfo[i][hEntrancez]);
                    PlayerInfo[playerid][pInt] = 0;
                    PlayerInfo[playerid][pLocal] = 255;
                    if(HouseInfo[i][hHel] == 1)
                    {
                        new Float:tempheal;
                        GetPlayerHealth(playerid,tempheal);
                        if(tempheal < 100.0)
                        {
                            SetPlayerHealth(playerid,100.0);
                        }
                    }
                }
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
Wrong Virtual World - by KeyWay - 22.05.2009, 18:17
Re: Wrong Virtual World - by Khelif - 22.05.2009, 20:15
Re: Wrong Virtual World - by KeyWay - 22.05.2009, 20:31
Re: Wrong Virtual World - by Khelif - 22.05.2009, 21:16
Re: Wrong Virtual World - by KeyWay - 22.05.2009, 22:14
Re: Wrong Virtual World - by KeyWay - 23.05.2009, 13:46
Re: Wrong Virtual World - by Badger(new) - 23.05.2009, 13:59
Re: Wrong Virtual World - by KeyWay - 23.05.2009, 14:18
Re: Wrong Virtual World - by Badger(new) - 23.05.2009, 14:53
Re: Wrong Virtual World - by KeyWay - 23.05.2009, 16:52

Forum Jump:


Users browsing this thread: 1 Guest(s)