Help with createhouse command..
#2

In your enum, where ExteriorX,Y and Z, put "Float:" behind of them.
And you command fixed:
pawn Код:
CMD:createhouse(playerid,params[])
{
    for(new i; i < MAX_HOUSES; i++)
    {
        if(PlayerInfo[playerid][Adminlevel] < 4) return SendClientMessage(playerid,COLOR_ERROR,"[ERROR]: You're not authorized to use this command");
        if(strcmp(params,"exterior",false)==0)
        {
            GetPlayerPos(playerid,HouseInfo[i][ExteriorX],HouseInfo[i][ExteriorY],HouseInfo[i][ExteriorZ]);
            SendClientMessage(playerid,ORANGE,"House Exterior Set [/createhouse interior]");
        }
        if(strcmp(params,"interior",false)==0)
        {
            GetPlayerPos(playerid,HouseInfo[i][InteriorX],HouseInfo[i][InteriorY],HouseInfo[i][InteriorZ]);
            SendClientMessage(playerid,ORANGE,"House Interior Set.");
        }
    }
    return 1;
}
Reply


Messages In This Thread
Help with createhouse command.. - by Azzeto - 25.12.2011, 15:02
Re: Help with createhouse command.. - by FireCat - 25.12.2011, 15:08
Re: Help with createhouse command.. - by suhrab_mujeeb - 25.12.2011, 15:08
Re: Help with createhouse command.. - by Azzeto - 25.12.2011, 15:14

Forum Jump:


Users browsing this thread: 1 Guest(s)