18.10.2015, 20:17
I made my command: /Sellhouse and in game no error or effect happens, it states im still the owner:
Код:
CMD:sellhouse(playerid, params[]) { new house = House[playerid][hOwner]; if(IsPlayerInRangeOfPoint(playerid, 4.0,House[house][hExteriorX],House[house][hExteriorY],House[house][hExteriorZ])) { if(House[playerid][hOwner] == 1) { if(sscanf(params, "u", playerid)) return SendClientMessage(playerid, COLOR_WHITE,"{00C0FF}[SYNTAX]: {FFFFFF}/sellhouse"); new id; House[id][hOwned] = 0; SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have successfully sold your house!"); SaveHouse(id); } else { SendClientMessage(playerid, COLOR_WHITE, "{F81414}[ERROR]: {FFFFFF}You do not own or not at your house!"); } } return 1; }