Enter House command isn't working
#1

Hi, I have made a command to enter any house which the player who typed the command is near. Here is the command.
pawn Код:
CMD:enterhouse(playerid, params[])
{
    for(new i=0; i < houses; i++)
    {
        if(IsPlayerInRangeOfPoint(playerid, 1.5, HouseInfo[i][hX], HouseInfo[i][hY], HouseInfo[i][hZ]))
        {
            new string[128];
            format(string, sizeof(string), "DEBUG: House Entered: X: %f, Y: %f, Z: %f, Interior: %d.", HouseInfo[i][hIntX], HouseInfo[i][hIntY], HouseInfo[i][hIntZ], HouseInfo[i][hInt]);
            SendClientMessageToAll(COLOR_WHITE, string);
            SetPlayerPos(playerid, HouseInfo[i][hIntX], HouseInfo[i][hIntY], HouseInfo[i][hIntZ]);
            SetPlayerInterior(playerid, HouseInfo[i][hInt]);
        }
    }
    return 1;
}
It for some reason isn't teleporting me to the house coords, it just sends me in the air.
Reply


Messages In This Thread
Enter House command isn't working - by Luis- - 07.10.2011, 17:31
Re: Enter House command isn't working - by Luis- - 07.10.2011, 18:24
Re: Enter House command isn't working - by =WoR=G4M3Ov3r - 07.10.2011, 18:46
Re: Enter House command isn't working - by Kush - 07.10.2011, 18:49
Re: Enter House command isn't working - by =WoR=G4M3Ov3r - 07.10.2011, 18:54
Re: Enter House command isn't working - by Luis- - 07.10.2011, 18:59
Re: Enter House command isn't working - by Luis- - 07.10.2011, 21:18
Re: Enter House command isn't working - by PowerPC603 - 07.10.2011, 21:22
Re: Enter House command isn't working - by AndreT - 07.10.2011, 21:25
Re: Enter House command isn't working - by Fire_Shark - 07.04.2017, 06:19

Forum Jump:


Users browsing this thread: 1 Guest(s)