18.12.2018, 14:39
Thanks I'll do that
also I have another question I made a gang system. every thing there is works fine but /gang skin <id> is not working I don't know why when I type /gang skin even usage is not showing my command is this
also I have another question I made a gang system. every thing there is works fine but /gang skin <id> is not working I don't know why when I type /gang skin even usage is not showing my command is this
Код:
CMD:gang (playerid, params[]) { new id, skin, fstr[128], str[128], gstr[128]; if(sscanf(params, "s[30]", gstr)) return SendClientMessage(playerid, COLOR_ERROR, "Usage: /gang <...> "); if(strcmp(gstr, "skin", true) == 0) { if(GANGINFO[playerid][ingang] == false) return SendClientMessage(playerid, COLOR_ERROR, "You are not in a gang"); if(GetPlayerMoney(playerid) < MIN_CASH_TO_CHANGE_SKIN) return SendClientMessage(playerid, COLOR_ERROR, "You don't have enough money"); if(sscanf(params, "i", skin)) return SendClientMessage(playerid, -1, "Usage: /gang skin <id>"); if(skin > 299 || skin < 0) return SendClientMessage(playerid, COLOR_ERROR, "Invalid skin ID"); switch(skin) { case 105: return SendClientMessage(playerid, COLOR_ERROR, "Invalid skin ID"); case 106: return SendClientMessage(playerid, COLOR_ERROR, "Invalid skin ID"); case 107: return SendClientMessage(playerid, COLOR_ERROR, "Invalid skin ID"); case 270: return SendClientMessage(playerid, COLOR_ERROR, "Invalid skin ID"); case 269: return SendClientMessage(playerid, COLOR_ERROR, "Invalid skin ID"); case 271: return SendClientMessage(playerid, COLOR_ERROR, "Invalid skin ID"); case 114: return SendClientMessage(playerid, COLOR_ERROR, "Invalid skin ID"); case 115: return SendClientMessage(playerid, COLOR_ERROR, "Invalid skin ID"); case 116: return SendClientMessage(playerid, COLOR_ERROR, "Invalid skin ID"); case 41: return SendClientMessage(playerid, COLOR_ERROR, "Invalid skin ID"); case 265: return SendClientMessage(playerid, COLOR_ERROR, "Invalid skin ID"); case 266: return SendClientMessage(playerid, COLOR_ERROR, "Invalid skin ID"); case 267: return SendClientMessage(playerid, COLOR_ERROR, "Invalid skin ID"); case 284: return SendClientMessage(playerid, COLOR_ERROR, "Invalid skin ID"); case 286: return SendClientMessage(playerid, COLOR_ERROR, "Invalid skin ID"); case 285: return SendClientMessage(playerid, COLOR_ERROR, "Invalid skin ID"); case 102: return SendClientMessage(playerid, COLOR_ERROR, "Invalid skin ID"); case 103: return SendClientMessage(playerid, COLOR_ERROR, "Invalid skin ID"); case 104: return SendClientMessage(playerid, COLOR_ERROR, "Invalid skin ID"); case 85: return SendClientMessage(playerid, COLOR_ERROR, "Invalid skin ID"); case 108: return SendClientMessage(playerid, COLOR_ERROR, "Invalid skin ID"); case 109: return SendClientMessage(playerid, COLOR_ERROR, "Invalid skin ID"); case 110: return SendClientMessage(playerid, COLOR_ERROR, "Invalid skin ID"); case 63: return SendClientMessage(playerid, COLOR_ERROR, "Invalid skin ID"); case 55: return SendClientMessage(playerid, COLOR_ERROR, "Invalid skin ID"); case 117: return SendClientMessage(playerid, COLOR_ERROR, "Invalid skin ID"); case 163: return SendClientMessage(playerid, COLOR_ERROR, "Invalid skin ID"); case 164: return SendClientMessage(playerid, COLOR_ERROR, "Invalid skin ID"); case 165: return SendClientMessage(playerid, COLOR_ERROR, "Invalid skin ID"); } GANGINFO[playerid][gskin] = skin; SetPlayerSkin(playerid, skin); } return 1; }