[Solved] Sscanf.
#2

pawn Код:
command(confiscate, playerid, params[])
{
    new id, item[128], string[128];
    if (sscanf(params, "uz", id, item))
    {
      SendClientMessage(playerid, WHITE, "Syntax: /confiscate [playerid] [item]");
      SendClientMessage(playerid, GREY, "Items: Pot, Cocaine, Materials, Weapons, Phone, WalkieTalkie");
    }
    else
    {
    }
    return 1;
}
Example.
Reply


Messages In This Thread
[Solved] Sscanf. - by CaHbKo - 16.01.2010, 16:50
Re: [Help] Sscanf. - by Calgon - 16.01.2010, 16:53
Re: [Help] Sscanf. - by CaHbKo - 16.01.2010, 17:19

Forum Jump:


Users browsing this thread: 1 Guest(s)