How can i get that?
#5

Quote:
Originally Posted by Mencent
Посмотреть сообщение
You would like to get the vehicle id, wouldn't you? Then you have to do it like this:
PHP код:
if(dialogid == 559)
{
    if(
response)
    {
        new 
count;
        for(new 
i;i<MAX_RP_VEHICLES;i++)
        {
            if(
listitem == count)
            {
                
printf("playerid %d clicked on the vehicle id %i",playerid,VehicleInfo[listitem][vID]);
                
//count = listitem <=> listitem = count
                //You can work either with count or listitem.
                
return 1;
            }
            
count ++;
        }
    }

It will return this by clicking listitem 1:
Код:
VehicleInfo[0][vID]
But i want it to return real car id
Reply


Messages In This Thread
How can i get that? [+REP] - by K0P - 23.03.2016, 07:44
Re: How can i get that? - by Mencent - 23.03.2016, 08:24
Re: How can i get that? - by K0P - 23.03.2016, 08:35
Re: How can i get that? - by Mencent - 23.03.2016, 08:38
Re: How can i get that? - by K0P - 23.03.2016, 08:43
Re: How can i get that? - by Mencent - 23.03.2016, 08:48
Re: How can i get that? - by K0P - 23.03.2016, 09:16
Re: How can i get that? - by DRIFT_HUNTER - 23.03.2016, 09:21
Re: How can i get that? - by K0P - 23.03.2016, 09:21
Re: How can i get that? - by DRIFT_HUNTER - 23.03.2016, 09:27

Forum Jump:


Users browsing this thread: 1 Guest(s)