25.12.2011, 15:08
In your enum, where ExteriorX,Y and Z, put "Float:" behind of them.
And you command fixed:
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;
}