28.06.2014, 18:08
Hello everyone,
I've made a simple weapon selection with a dialog but it isn't working. The dialog shows up but if I select an entry and klick ok the dialog disappears and I don't get the weapon. Here my code
Please tell me what's wrong with it.
Thank you
webhead
I've made a simple weapon selection with a dialog but it isn't working. The dialog shows up but if I select an entry and klick ok the dialog disappears and I don't get the weapon. Here my code
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == dmdia && response)
{
if(response)
{
if(listitem == 0)
{
GivePlayerWeapon(playerid,31,999);
}
if(listitem == 1)
{
GivePlayerWeapon(playerid,23,999);
}
if(listitem == 2)
{
GivePlayerWeapon(playerid,25,999);
}
if(listitem == 3)
{
GivePlayerWeapon(playerid,8,999);
}
}
return 1;
}
...
Thank you
webhead


