13.05.2015, 20:06
Well, everytime I type "/exit" it shows me it's an unknown command even though it isn't. Can anyone see anything wrong with it?
Код:
CMD:exit(playerid) { if(IsPlayerInRangeOfPoint(playerid, 2.0, 246.6040,63.7641,1003.6406)) { SetPlayerPos(playerid, 1553.9977,-1675.6483,16.1953); SetPlayerInterior(playerid, 0); } else if(IsPlayerInRangeOfPoint(playerid, 2.0, -2027.5374,-105.0062,1035.1719)) { SetPlayerPos(playerid, 1284.8177,-1585.1346,13.5469); SetPlayerInterior(playerid, 0); } else if(IsPlayerInRangeOfPoint(playerid, 2.0, 2305.8345,-16.0619,26.7496)) { SetPlayerPos(playerid, 1459.5800,-1011.4103,26.8438); SetPlayerInterior(playerid, 0); } else if(IsPlayerInRangeOfPoint(playerid, 2.0, 3161.4094,-442.7526,10.6328)) { SetPlayerPos(playerid, 1172.7821,-1325.3270,15.4007); SetPlayerInterior(playerid, 0); } if(IsPlayerInRangeOfPoint(playerid, 2.0, HouseInfo[houseEntered{playerid}][hIntX], HouseInfo[houseEntered{playerid}][hIntY], HouseInfo[houseEntered{playerid}][hIntZ])) { SetPlayerPos(playerid, HouseInfo[houseEntered{playerid}][hX], HouseInfo[houseEntered{playerid}][hY], HouseInfo[houseEntered{playerid}][hZ]); SetPlayerInterior(playerid, 0); houseEntered{playerid} = 0; } if(IsPlayerInRangeOfPoint(playerid, 2.0, BusinessInfo[bizEntered{playerid}][bIntX], BusinessInfo[bizEntered{playerid}][bIntY], BusinessInfo[bizEntered{playerid}][bIntZ])) { SetPlayerPos(playerid, BusinessInfo[bizEntered{playerid}][bX], BusinessInfo[bizEntered{playerid}][bY], BusinessInfo[bizEntered{playerid}][bZ]); SetPlayerInterior(playerid, 0); bizEntered{playerid} = 0; } return 1; }