14.03.2019, 20:40
Hello guys i have a little question about listitem in Dialogs.
I wanna show my owned cars in a dialog list to manage it (change colors etc..) it shows fine in a list
but how i can pass a variable to detect the vehicleid selected on the dialog when i reach OnDialogResponse?
This is the command that i made to show my cars in a list.
Thanks in advance.
All help will be rep!
I wanna show my owned cars in a dialog list to manage it (change colors etc..) it shows fine in a list
but how i can pass a variable to detect the vehicleid selected on the dialog when i reach OnDialogResponse?
This is the command that i made to show my cars in a list.
PHP Code:
CMD:misvehiculos(playerid, param[])
{
if(!GetPlayerVehiclesCount(playerid)) return Message(playerid, COLOR_MSG_AVISOS, "No tienes vehнculos.");
new sEncontrar[64];
for(new i = 0; i < MAX_VEHICLES; i++)
{
if(cInfo[i][ownerID] == pInfo[playerid][pID])
{
format(sEncontrar, sizeof(sEncontrar), "%s [M: %d] ", VehicleNames[cInfo[i][model]-400], cInfo[i][matricula]);
}
}
ShowPlayerDialog(playerid, 515, DIALOG_STYLE_LIST, "GPS de Vehнculos", sEncontrar, "Aceptar", "Cancelar");
return 1;
}
All help will be rep!