zcmd, 1 CMD works, the other one dosen't - FS
#1

So, it compiles without any errors, zcmd is included, nothing is written in OnPlayerCommandText, the FS is reloaded.

This command works:
pawn Код:
CMD:ison(playerid, params[])
{
    if(IsPlayerAdmin(playerid))
    {
        SendClientMessage(playerid, COLOR_GREEN, "Yes.");
    }
    return 1;
}
This command dosent:
pawn Код:
CMD:jetpack(playerid, params[]) // Have also tried /jetpack1
{
    new targetid;
    if(IsPlayerAdmin(playerid))
    if(sscanf(params,"u", targetid)) return SendClientMessage(playerid,COLOR_RED, "USAGE: /jetpack [ID/PartOfName]");
    {
        GivePlayerWeapon(targetid, 21, 0); // have also tried with 1 ammo. Note: This is the jetpack.
    }
    return 1;
}
What happens with this command is that if i write /jetpack it says "USAGE: /jetpack [ID/PartOfName]", but if i type
my ID, i dont get the jetpack.

What's wrong ?
Reply


Messages In This Thread
zcmd, 1 CMD works, the other one dosen't - FS - by gnoomen2 - 12.08.2013, 22:54
Re: zcmd, 1 CMD works, the other one dosen't - FS - by RedJohn - 12.08.2013, 23:15

Forum Jump:


Users browsing this thread: 1 Guest(s)