Unknown Command
#4

I use YCMD such as this command
pawn Код:
YCMD:defammo(playerid, params[], help) {
    new id;
    new ammo;
    new msg[128];
    if(!sscanf(params, "dD(0)", id,ammo)) {
        if(id < 0 || id > sizeof(DefaultAmmo)) id = 0;
        if(ammo != 0) {
            if(ammo == -1) ammo = INFINITE_AMMO;
            DefaultAmmo[id] = ammo;
        }
        format(msg, sizeof(msg), "* %d: %d",id,DefaultAmmo[id]);
        SendClientMessage(playerid, COLOR_LIGHTBLUE, msg);
    } else {
        SendClientMessage(playerid, X11_WHITE, "USAGE: /defammo [gunid] (ammo)");
    }
    return 1;
}
Reply


Messages In This Thread
Unknown Command - by Tony$$ - 03.05.2015, 18:28
Re: Unknown Command - by Razturach - 03.05.2015, 18:37
Re: Unknown Command - by Konstantinos - 03.05.2015, 18:38
Re: Unknown Command - by Tony$$ - 03.05.2015, 18:51
Re: Unknown Command - by Tony$$ - 03.05.2015, 20:09
Re: Unknown Command - by Tony$$ - 04.05.2015, 15:32
Re: Unknown Command - by Ahmad45123 - 04.05.2015, 15:37
Re: Unknown Command - by Konstantinos - 04.05.2015, 15:39
Re: Unknown Command - by Tony$$ - 04.05.2015, 16:18
Re: Unknown Command - by MP2 - 04.05.2015, 16:20

Forum Jump:


Users browsing this thread: 3 Guest(s)