Giveweapon issues
#4

Quote:
Originally Posted by MP2
Посмотреть сообщение
pawn Код:
if(sscanf(params, "us[256]", id, wepid, ammo))
You have two specifiers (u and s) but 3 variables.
Yeah, just edited my post, the issue is retrieving the names from the array, see lines

pawn Код:
//sWeapon = GetWeaponModelIDFromName(wepid);
//if(sWeapon < 1 || sWeapon > 47) return SendClientMessage(playerid, 0x66666666, "That weapon model or ID doesn't exist.");
That is where the issue is, if I "wepid" to "params" (Which is the only function that doesn't produce an error) nothing happens, the correct weapon now spawns with the correct amount of ammo, the issue is receiving the name and ID respectively.
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: 2 Guest(s)