(/command [id] [time]) how can i add another variable?
#10

Will this work?

pawn Код:
CMD:aj(playerid,params[])
{
    new
        target,
        time,
        reason;

    if(sscanf(params,"uiS(string)[128]",target,money,reason))
    {
        return SendClientMessage(playerid,COLOR_LIGHTGRAY,"USAGE: /aj [playerid] [time] [reason]");
    }
    else
    {
     //etc
    }
    return 1;
}
btw i already have the include and plugin, I just never used it
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)