sscanf
#7

I think this sscanf plugin will work for you. Click me

use sscanf like this:

pawn Код:
YCMD:spec(playerid, params[], help)
{
    #pragma unused help
// Keep pragma unused help if you don't want to use the help thing y_commands have (or delete it if you do)
    new id; // The ID you will enter after /spec
    if(sscanf(params,"u",id)) SendClientMessage(playerid, -1, "Usage: /spec [id/name]");
    else if(id == INVALID_PLAYER_ID) SendClientMessage(playerid, 0xFF0000FF, "Player is not connected.");
    else
    {
        // Do what you want here.
    }
    return 1;
}
Also, Read this, it tells you how sscanf works. Click me
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: 2 Guest(s)