23.03.2013, 03:06
pawn Код:
new string[128], giveplayerid, reason[100];
if(sscanf(params, "us[100]", giveplayerid, reason)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /clearflag [playerid] [reason]");
if you want the reason marked as optional parameter, then you can use uppercase "S", so when the reason is not specified, it will pass the usage message.
pawn Код:
if(sscanf(params, "uS[100]", giveplayerid, reason)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /clearflag [playerid] [reason]");