20.05.2016, 07:22
why u use "type" with the playerid?
try without that;
try without that;
Код:
CMD:clan(playerid, params[]) { new type[128]; if(sscanf(params,"s[128]",type)) return SendClientMessage(playerid, -1, ""COL_GRAY"USAGE: /clan [create/leave/help]"); if(!strcmp(type, "invite")) { new id, string[128]; if(sscanf(params,"u",id)) return SendClientMessage(playerid, -1, ""COL_GRAY"USAGE: /clan invite [id/part of name]"); format(string, sizeof(string), ""COL_GRAY"You have been invited to join '%s (%d)'. To join them, please use /clan join.", GetPlayerClanName(playerid), GetPlayerClanID(playerid)); SendClientMessage(id, -1, string); } return 1; }