21.02.2015, 22:15
Hey guys, can you help me with this code?
Код:
CMD:agivelicense(playerid, params[]) { new id, option[7];// string[128]; if(PlayerInfo[playerid][pAdminLevel] < 4) return FaraAcces; if(sscanf(params, "ui", id, option)) return SendClientMessage(playerid, 0xFFFFFFFF, "Folosire: {C0C0C0}/agivelicense [playerid] [Type] (Type 1 = Car | Type 2 = Weapon | Type 3 = Boat | Type 4 = Fly)"); { if(!strcmp(option, "1", true)) { SendClientMessage(playerid,-1,"Test Car"); return 1; } else if(strcmp(option, "2", true)) { SendClientMessage(playerid,-1,"Test Weapon "); return 1; } else if(strcmp(option, "3", true)) { SendClientMessage(playerid,-1,"Test Boat"); return 1; } else if(strcmp(option, "4", true)) { SendClientMessage(playerid,-1,"Test Fly"); return 1; } } return 1; }