Advertisement
Guest User

Untitled

a guest
Jul 29th, 2016
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1.  
  2. Dialog:FURNITURE_STORAGE_SELECT(playerid, response, listitem, inputtext[])
  3. {
  4. if(!response)
  5. return Dialog_Show(playerid, FURNITURE_CATEGORY_LIST, DIALOG_STYLE_LIST, " Ver categorias", "Almacenamiento\nComodidad\nDecoración\nEntretenimiento\nIluminación\nAlmacenamiento\nSuperficie\nElectrodomesticos\nConstrucción\nDiversos", "Seleccionar", "Cancelar");
  6.  
  7. if(response)
  8. {
  9. new string[1000];
  10. for(new i = 0; i < sizeof(FurnitureModels); i ++) if(FurnitureModels[i][Type] == listitem + 1)
  11. format(string, sizeof(string), CHAT_WHITE"Usted está a punto de comprar el siguiente producto para su casa, ¿realmente desea comprarlo?\n \n"CHAT_LIGHTYELLOW"Información del mueble:"CHAT_WHITE"\n%s hecho a partir de %s con un color %s, tamaño %s, generalmente se usa %s."CHAT_WHITE"\n \nSi realmente desea comprar este mueble, pulse el botón 'aceptar' y se le descontarán $%d por \nla compra.",
  12. tolower(FurnitureModels[i][Name]), tolower(FurnitureModels[i][Material]), tolower(FurnitureModels[i][Color]), tolower(FurnitureModels[i][Size]), tolower(FurnitureModels[i][Position]), FurnitureModels[i][Price]);
  13. Dialog_Show(playerid, PITO, DIALOG_STYLE_MSGBOX, " Confirmar compra", string, "Aceptar", "Cancelar");
  14. }
  15. return 1;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement