01.10.2011, 21:19
pawn Код:
// indentation
if(strcmp("/mission", cmdtext, true, 8) == 0) {
new
i = 0,
tmp[128],
type = strval(cmdtext[8]);
for( ; i != sizeof Mission; ++i) {
if(Mission[i][mission_type] == type) {
format(tmp, sizeof tmp, "Mission: \"%s\" Person: \"%s\"", Mission[i][mission_name], Mission[i][person_name]);
SendClientMessage(playerid, COLOR_YELLOW_LABEL, tmp);
}
}
if(tmp[0]) {
return true;
}
}