04.08.2016, 18:08
Wouldn't be easier Stigned's way but without a custom specifier?
pawn Код:
new id, tmp;
if (params[0] == '[' && (tmp = strfind(params, "]")) != -1)
{
if (sscanf(params[tmp + 1], "u", id)) return SendClientMessage(playerid, -1, "usage..");
}
else
{
if (sscanf(params, "u", id)) return SendClientMessage(playerid, -1, "usage..");
}
if (id == INVALID_PLAYER_ID) return ... // error..
// code..