sscanf
#2

I wouldn't use the native params for that, but:
pawn Код:
YCMD:spec(playerid, params[], help)
{
    new iPlayer;
    if(sscanf(params, "u", iPlayer)) return SendClientMessage(playerid, COLOR_WHITE, "TYPE: /spec [id/name]");
    if(iPlayer == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_GREY, "The player isn't connected!");
    //etc.
}
Reply


Messages In This Thread
sscanf - by Cassely1704 - 11.11.2013, 09:54
Re: sscanf - by Loot - 11.11.2013, 12:49
Re: sscanf - by Cassely1704 - 11.11.2013, 16:47
Re: sscanf - by Konstantinos - 11.11.2013, 16:56
Re: sscanf - by Cassely1704 - 11.11.2013, 17:00
Re: sscanf - by Konstantinos - 11.11.2013, 17:07
Re: sscanf - by Stinged - 11.11.2013, 17:27
Re: sscanf - by Cassely1704 - 11.11.2013, 20:31
Re: sscanf - by Cassely1704 - 12.11.2013, 15:46
Re: sscanf - by Stinged - 13.11.2013, 17:04

Forum Jump:


Users browsing this thread: 1 Guest(s)