01.02.2018, 01:40
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?
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!
Код:
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; }
My language is not English, but I am trying to learn it, greetings!