11.04.2012, 07:27
Can someone please tell me what's wrong with my script here?
Код:
CMD:house(playerid, params[]) { new string[256], slot; if(sscanf(params,"s[256]z", string, slot)) return SendClientMessage(playerid, COLOR_GREY, "USAGE: /house [buy/sell/lock/unlock/putgun/takegun/inventory]"); if(!strcmp(string, "buy", true)) { BuyHouseForPlayer(playerid); return 1; } if(!strcmp(string, "sell", true)) { SellHouseForPlayer(playerid); return 1; } if(!strcmp(string, "lock", true)) { LockPlayerHouse(playerid); return 1; } if(!strcmp(string, "unlock", true)) { UnlockPlayerHouse(playerid); return 1; } if(!strcmp(string, "putgun", true)) { PutGunPlayerHouse(playerid, slot); return 1; } if(!strcmp(string, "takegun", true)) { TakeGunPlayerHouse(playerid, slot); return 1; } if(!strcmp(string, "inventory", true)) { CheckPlayerHouseInventory(playerid); return 1; } else { SendClientMessage(playerid, COLOR_GREY, "USAGE: /house [buy/sell/lock/unlock/putgun/takegun/inventory]"); } return 1; }