Advertisement
salahzar

Lista della spesa

Mar 17th, 2013
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. list spesa= [
  2. "Pane",
  3. "Latte",
  4. "Uova",
  5. "Farina"
  6.  
  7. ];
  8.  
  9.  
  10. default
  11. {
  12.     state_entry()
  13.     {
  14.         llSay(0, "Script running");
  15.         llSetText("Lista della spesa, \ntoccami per sapere \ncosa comprare",<0,1,0>,1);
  16.     }
  17.    
  18.     touch_start(integer count)
  19.     {
  20.         string avatarname=llDetectedName(0);
  21.         integer i;
  22.         for(i=0;i<llGetListLength(spesa);i++)
  23.         {
  24.             llSay(0,avatarname+" compra '"+llList2String(spesa,i)+"'");
  25.         }
  26.         llSay(0,"=======================");
  27.     }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement