30.05.2015, 18:07
Example:
I didn't get any error but it doesn't works.
Код:
COMMAND:gang(playerid,params[],option[]) { if(!strcmp(params, "create", true)) { if(gang[playerid][gid] != -1) return SendClientMessage(playerid,COLOR_GREEN, "[GANG]:{FFFFFF}Leave your gang with /gangleave before creating a new one!"); if(strlen(option) > 49 || strlen(option) < 3) return SendClientMessage(playerid, COLOR_GREEN, "[GANG]:{FFFFFF} /gangcreate (GANG NAME)"); if(IsgangTaken(option)) return SendClientMessage(playerid, COLOR_GREEN, "[GANG]:{FFFFFF}gang name is already in use!"); Creategang(option, playerid); return 1; } return 1; }