Give weapon help
#1

pawn Код:
CMD:givegun(playerid,params[])
{
    if(PlayerData[playerid][AdminLevel] > 2)
    {
        new Weapon;
        if(sscanf(params,"us",ID,Weapon)) return SendClientMessage(playerid,orange,"USAGE: /givegun [weapon name]");
        if(Weapon == Combat Shotgun)
        {
            format(str,sizeof(str),"%s has gave you a Combat Shotgun",Nam);
            SendClientMessage(ID,orange,str);
            GivePlayerWeapon(ID,27,99999);
        }
    }
    else return 0;
    return 1;
}
well i get
pawn Код:
D:\Users\Tanush\Desktop\SA-MP Server Stunt\gamemodes\stunt.pwn(3368) : error 017: undefined symbol "Combat"
D:\Users\Tanush\Desktop\SA-MP Server Stunt\gamemodes\stunt.pwn(3368) : error 017: undefined symbol "Shotgun"
D:\Users\Tanush\Desktop\SA-MP Server Stunt\gamemodes\stunt.pwn(3368) : error 029: invalid expression, assumed zero
D:\Users\Tanush\Desktop\SA-MP Server Stunt\gamemodes\stunt.pwn(3368) : fatal error 107: too many error messages on one line
I need to keep some guns in black list like minigun etc...
Reply
#2

pawn Код:
if(Weapon == WEAPON_SHOTGSPA)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)