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

ok ill do it this way
pawn Код:
CMD:setmoney(playerid,params[])
{
    new
        target,
        money;

    if(sscanf(params,"ui",target,money))
    {
        return SendClientMessage(playerid,COLOR_LIGHTGRAY,"USAGE: /setmoney [playerid] [amount]");
    }
    else
    {
        ResetPlayerMoney(target);
        GivePlayerMoney(target,money);
    }
    return 1;
}
so what else do I need at the top towards CMD:blabla for it to work?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)