Author Topic: [solved]RFC Saving  (Read 1823 times)

SexyDolphine

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 8
    • View Profile
[solved]RFC Saving
« on: April 19, 2015, 06:30:11 AM »
Hi

I have code like this
         
  1. tno.Send(10, Target.OthersSaved,1);
  2. tno.Send(10, Target.OthersSaved,2);
  3. tno.Send(10, Target.OthersSaved,3);
As i understand, only last RFC will be saved on server, isn't it?

When a new user join channel he will get only last?
What if i want to save them all and send in correct order?

I see only one way to do it - using multiple RFCs.
Is there another way?
« Last Edit: April 21, 2015, 04:30:20 PM by SexyDolphine »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: RFC Saving
« Reply #1 on: April 20, 2015, 08:17:18 PM »
Yes, only the latest call to the function is saved. If you want to save all 3, then do this:
  1. tno.Send(10, Target.OthersSaved, new int [] { 1, 2, 3 });
...in other words -- send an array, a System.Collections.Generic.List<> or a TNet.List.