02.04.2013, 13:47
If you dont understand then use it this way
Код:
COMMAND:vehicle(playerid, params[]) { new name[15]; if(sscanf(params, "s[15]", name)) { SendClientMessage(playerid, COLOR_GREY, TEXT_SYNTAX"(/v)ehicle <Usage>"); SendClientMessage(playerid, COLOR_GREY, "Tip: lock(1-3)"); return 1; } if(strcmp(name, "lock1", true) == 0) { } else if(strcmp(name, "lock2", true) == 0) { } else if(strcmp(name, "lock3", true) == 0) { } else { SendClientMessage(playerid, COLOR_GREY, TEXT_SYNTAX"(/v)ehicle <Usage>"); SendClientMessage(playerid, COLOR_GREY, "Tip: lock(1-3)"); return 1; } return 1; }