02.06.2015, 20:07
Thanks for the reply but I found an alternative to what you suggested. It's probably bad practice or something but I used this:
after:
and
So essentially skipped the name parameter when I knew what task they had typed. It ends up assigning the hour to both the name parameter and hour parameter.
pawn Код:
if(sscanf(params, "s[12]I(-1)I(-1)", task, id, hour))
pawn Код:
else if(!strcmp(task, "openingtime", true))
pawn Код:
else if(!strcmp(task, "closingtime", true))