Quote:
Originally Posted by [Full]Garfield[XDB]
don't exists Z parameter.
pawn Код:
CMD:house(playerid, params[]) { new string[50] ; if(sscanf(params,"s[50]", string)) 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; } return 1; }
|
The Z was meant as the id of the slot.
Код:
if(!strcmp(string, "putgun", true))
{
PutGunPlayerHouse(playerid, slot);
return 1;
}
if(!strcmp(string, "takegun", true))
{
TakeGunPlayerHouse(playerid, slot);
return 1;
}