Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // >>>>>> MI PROBLEMA ES EL SIGUIENTE, ESTE DIALOG MUESTRA LOS AUTOS QUE TIENE EL JUGADOR PARA VENDER, EL NOMBRE DEL MISMO, LA MATRÍCULA Y PRECIO..
- // >...SACANDO LA INFORMACIÓN DEL "'ITERATOR TOTALAUTOS_'" LUEGO HAGO UN BUCLE CON LOS 4 SLOTS QUE PUEDEN USAR LOS JUGADORES PARA SUS AUTOS, OSEASE..
- //>..LOS AUTOS QUE ESTE MISMO PUEDE TENER. COMPARA SI LA ID DEL AUTO EN USERLLAVES ES LA MISMA QUE AUTOSQL Y MUESTRA, ESTO FUNCIONA. EL PROBLEMA..
- //>..ES QUE DEBERÍA DE MOSTRAR LOS 4 SLOTS Y DAR LA INFORMACIÓN, SI ESTÁ DISPONIBLE O SI TIENE AUTO LA INFORMACIÓN DEL MISMO, PERO NO LO HACE!
- // > LO QUE ES MOSTRAR 1 SOLO SLOT AL AZAR EN OCASIONES EN VEZ DE LOS 4.
- Dialog:dialogVenderAuto(playerid, response, listitem, inputtext[])
- {
- if(response)
- {
- new StrDialog[279];
- foreach(new Autos_ : TotalAutos_)
- {
- for(new Slot_ = 0; Slot_ < 4; Slot_++)
- {
- new Auto_ = JugadoresDatos[playerid][userLlaves][Slot_];
- if(Auto_ == AutosDatos[ Autos_ ][autoSQL])
- {
- if(Auto_ == -1)
- {
- format(StrDialog, sizeof(StrDialog), "\n%d.\tDisponible", Slot_);
- }
- else
- {
- format(StrDialog, sizeof(StrDialog), "%d. Vehículo: %s | Matrícula: %s | Precio: %d\n", Slot_, NombreModel_Auto(AutosDatos[ Autos_ ][autoID]), AutosDatos[ Autos_ ][autoMatricula], AutosDatos[ Autos_ ][autoPrecio]);
- }
- }
- }
- Dialog_Show(playerid, dialogVenderAuto_2, DIALOG_STYLE_LIST, "Lista de Autos", StrDialog, ">", "-");
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement