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..