Little help with weapons name :/
#1

I need some help with my weapons system ... (how to get the ID of a weapon by its name), the problem is that I have changed the name of the weapons and I do not know how to recognize that name and get id .. Someone help me?

Код:
Dialog:ShowPlayerWeapons(playerid, response, listitem, inputtext[])
{
	if(response)
	{
			new caption[80];
			format(caption, sizeof(caption), "Arma: %s ID:%d", inputtext, ????? );
			Dialog_Show(playerid, ShowPlayerWeapons, DIALOG_STYLE_LIST, caption, "t\na\nt", "Aceptar", "Cancelar");
	}
	return true;
}
In this case, my character has 4 weapons, a baton, 9mm, a shotgun and a m4, when selecting one only takes the value of the m4 ..

My language is not English, but I am trying to learn it, greetings!
Reply


Messages In This Thread
Little help with weapons name :/ - by OdgFox - 01.02.2018, 01:40
Re: Little help with weapons name :/ - by Mugala - 01.02.2018, 09:20
Re: Little help with weapons name :/ - by Flamehaze7 - 01.02.2018, 09:58
Re: Little help with weapons name :/ - by OdgFox - 01.02.2018, 15:34
Re: Little help with weapons name :/ - by RogueDrifter - 01.02.2018, 15:37
Re: Little help with weapons name :/ - by Mugala - 01.02.2018, 16:56
Re: Little help with weapons name :/ - by Fratello - 01.02.2018, 19:06
Re: Little help with weapons name :/ - by Mugala - 01.02.2018, 19:22
Re: Little help with weapons name :/ - by Fratello - 01.02.2018, 19:25
Re: Little help with weapons name :/ - by OdgFox - 01.02.2018, 22:42

Forum Jump:


Users browsing this thread: 7 Guest(s)