What i have wrong here
#8

Start using zcmd and sscanf and do it like this:

pawn Code:
CMD:money(playerid, params[])
{
    new id, money;
    if(sscanf(params, "ui", id, money))
        return SendClientMessage(playerid, 0xFFFFFFFF, "USAGE: /money [id] [amount]");
    GivePlayerMoney(id, money);
    return 1;
}
Reply


Messages In This Thread
What i have wrong here - by Dezzzy - 27.10.2014, 18:12
Re: What i have wrong here - by Sew_Sumi - 27.10.2014, 18:22
Re: What i have wrong here - by DavidBilla - 27.10.2014, 18:22
Re: What i have wrong here - by Dezzzy - 27.10.2014, 18:27
Re: What i have wrong here - by dominik523 - 27.10.2014, 18:36
Re: What i have wrong here - by DavidBilla - 27.10.2014, 18:37
Re: What i have wrong here - by Glossy42O - 27.10.2014, 18:37
Re: What i have wrong here - by SKAzini - 27.10.2014, 18:37
Re: What i have wrong here - by dominik523 - 27.10.2014, 18:38
Re: What i have wrong here - by Dezzzy - 27.10.2014, 18:46

Forum Jump:


Users browsing this thread: 1 Guest(s)