CMD:Exit does not get the right house
#1

Okay so i got this:
pawn Код:
CMD:exit(playerid, params[])
{
    if(APlayerData[playerid][CurrentHouse] > -1)
    {
        new HouseID;
        APlayerData[playerid][CurrentHouse] = HouseID;
        SetPlayerPos(playerid, AHouseData[HouseID][HouseX], AHouseData[HouseID][HouseY], AHouseData[HouseID][HouseZ]);
        SetPlayerVirtualWorld(playerid, 0);
        SetPlayerInterior(playerid, 0);
        APlayerData[playerid][CurrentHouse] = -1;
    }
    else
        SendClientMessage(playerid, 0xFFFFFF, "{FF0000}You are not in a house!");
    return 1;
}
But it always gets me to the ID 0. While CurrentHouse is for example 2. I debugged that it is 2 so why does this not get the positions?
Reply


Messages In This Thread
CMD:Exit does not get the right house - by thimo - 14.07.2013, 11:45
AW: CMD:Exit does not get the right house - by Macronix - 14.07.2013, 11:47
Respuesta: CMD:Exit does not get the right house - by Xabi - 14.07.2013, 11:48
Re: CMD:Exit does not get the right house - by thimo - 14.07.2013, 11:52
Respuesta: Re: CMD:Exit does not get the right house - by Xabi - 14.07.2013, 11:54
Re: CMD:Exit does not get the right house - by thimo - 14.07.2013, 11:56

Forum Jump:


Users browsing this thread: 1 Guest(s)