Giveweapon issues
#7

Quote:
Originally Posted by Nero_3D
Посмотреть сообщение
Just use the custom specifier weapon, it should be included in the newest sscanf include

pawn Код:
// we use k<function>
    if(sscanf(params, "uk<weapon>d", id, sWeapon, ammo)) return SendClientMessage(playerid, 0x66666666, "Usage: /giveweapon [Player ID] [Weapon ID] [Ammo] * You can only give 5000 ammo with the weapon *");
// If its an invalid weapon the custom function returns -1
        if(sWeapon == -1) return SendClientMessage(playerid, 0x66666666, "That weapon model or ID doesn't exist.");
Thanks for the help but now, with that code you gave me, replacing those two line I always get the message:

You have given %s a 'Brass Knuckles [ID 1]' with '%d' ammo.

This is with a combination of different names and ID's, no weapons are given, only Brass Knuckles are displayed and given..
Reply


Messages In This Thread
Giveweapon issues - by vIBIENNYx - 18.05.2012, 21:47
Re: Giveweapon issues - by vIBIENNYx - 18.05.2012, 22:01
Re: Giveweapon issues - by MP2 - 18.05.2012, 22:04
Re: Giveweapon issues - by vIBIENNYx - 18.05.2012, 22:07
Re: Giveweapon issues - by vIBIENNYx - 18.05.2012, 22:24
AW: Re: Giveweapon issues - by Nero_3D - 18.05.2012, 22:43
Re: AW: Re: Giveweapon issues - by vIBIENNYx - 18.05.2012, 22:57
Re: AW: Re: Giveweapon issues - by vIBIENNYx - 18.05.2012, 23:09
AW: Re: AW: Re: Giveweapon issues - by Nero_3D - 19.05.2012, 01:33
Re: Giveweapon issues - by vIBIENNYx - 19.05.2012, 01:49

Forum Jump:


Users browsing this thread: 1 Guest(s)