10.12.2018, 13:30
I have made a house system.Everything forks fine exept 1 command.
When i use this command it teleports me to the coord but it says "Unknown command".
Can someone help me to fix it please?
Код:
CMD:enterhouse(playerid,params[]) { for(new h=0;h<MAX_HOUSES+1;h++) { if(IsPlayerInRangeOfPoint(playerid,1.0,HouseInfo[h][hEnterX],HouseInfo[h][hEnterY],HouseInfo[h][hEnterZ])) { SetPlayerPos(playerid,HouseInfo[h][hExitX],HouseInfo[h][hExitY],HouseInfo[h][hExitZ]); SetPlayerInterior(playerid,HouseInfo[h][hInterior]); } } return 1; }
Can someone help me to fix it please?