Yes, defining TEXTs (or any game-object0 inside a function is bad,
and the compiler STILL hasnt been modded to generate errors on this...

So, if you need three 'separate' TEXTs to display your data, you
just create all three TEXTs as global text's (outside the function),
and copy the strings into them from inside the function.

eg:
Code:
TEXT* Text1 = { strings=1;  }
TEXT* Text2 = { strings=1;  }
TEXT* Text3 = { strings=1;  }


function win_choice(STRING* s1, STRING* s2, STRING* s3)
{
   if(s1!=0)
   {
      str_cpy((Text1.pstring)[0], s1);
      set(Text1, SHOW);
   }
   else
   {
      reset(Text1, SHOW);
   }
   //
   if(s2!=0)
   {
      str_cpy((Text2.pstring)[0], s2);
      set(Text2, SHOW);
   }
   else
   {
      reset(Text2, SHOW);
   }
   //
   if(s3!=0)
   {
      str_cpy((Text3.pstring)[0], s1);
      set(Text3, SHOW);
   }
   else
   {
      reset(Text3, SHOW);
   }
}




"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial