Problem with Command
#1

Hello everybody.I have problem with command for perk..
code
pawn Код:
CMD:refill(playerid,params[])
{
    if(perk[playerid][Ammo] == 1) return SendClientMessage(playerid,0xFFFFFFFF,""embed_red"[ERROR]"embed_grey"You havent choose perk Ammo.Cant use this command!");
    SendClientMessage(playerid,0xFFFFFFF,""embed_yellow"[INFO]"embed_white"You have been refill your ammo!");
    GivePlayerWeapon(playerid,31,300);
    GivePlayerWeapon(playerid,27,50);
    GivePlayerWeapon(playerid,24,50);
    return 1;
}
I try this solution too
pawn Код:
CMD:refill(playerid,params[])
{
    if(perk[playerid][Ammo] == 1) return SendClientMessage(playerid,0xFFFFFFFF,""embed_red"[ERROR]"embed_grey"You havent choose perk Ammo.Cant use this command!");
    {
        SendClientMessage(playerid,0xFFFFFFF,""embed_yellow"[INFO]"embed_white"You have been refill your ammo!");
        GivePlayerWeapon(playerid,31,300);
        GivePlayerWeapon(playerid,27,50);
        GivePlayerWeapon(playerid,24,50);
    }
    return 1;
}
But not working
here is Screen shot whats shows in game.
Reply


Messages In This Thread
Problem with Command - by SpiderWalk - 08.05.2012, 20:08
Re: Problem with Command - by 2KY - 08.05.2012, 20:13
Re: Problem with Command - by SpiderWalk - 08.05.2012, 20:17
Re: Problem with Command - by Disturn - 08.05.2012, 20:33
Re: Problem with Command - by DamienWalter - 15.05.2012, 12:35
Re: Problem with Command - by $$inSane - 15.05.2012, 14:19

Forum Jump:


Users browsing this thread: 1 Guest(s)