23.03.2016, 09:21
pawn Код:
if(dialogid == 559)
{
if(response)
{
new count;
for(new i = 0; i < MAX_RP_VEHICLES; i++)
{
if(VehicleInfo[i][KeyHolder] == CharacterInfo[playerid][active_character[playerid]][cID])
{
if(listitem == count)
{
//VehicleInfo[i][vID] is your vehicleid...
printf("Player %d clicked on the vehicle id %i",playerid, VehicleInfo[i][vID]);
return 1;
}
count++;
}
}
}
}