Help Items system
#6

I think this is the right what you want.
PHP код:
case DIALOG_P:
{
    if(!
response)return 1;
    new 
count;
    for(new 
i;i<sizeof(Item);i++)
    {
        if(
listitem == count)
        {
            
//Item[i][item_type] is the "Item-Type" which is clicked in the dialog.
            
UsePlayerItem(playeridItem[i][item_type], Item[i][item_uid]);
            break;
        }
        
count ++;
    }

Reply


Messages In This Thread
Help Items system - by Himan - 08.08.2016, 13:32
Re: Help Items system - by Himan - 08.08.2016, 13:58
Re: Help Items system - by Mencent - 08.08.2016, 14:20
Re: Help Items system - by Himan - 08.08.2016, 14:25
Re: Help Items system - by Himan - 08.08.2016, 16:31
Re: Help Items system - by Mencent - 08.08.2016, 16:41
Re: Help Items system - by Konstantinos - 08.08.2016, 16:46
Re: Help Items system - by Himan - 08.08.2016, 16:54
Re: Help Items system - by Himan - 08.08.2016, 17:00
Re: Help Items system - by Himan - 08.08.2016, 17:30

Forum Jump:


Users browsing this thread: 3 Guest(s)