Software Serial, multi integer data send and receive in on message

Virtual wire can easy to collect several integer data variables to one string, transfer it by sprintf() to other Arduino using free Tx pin. Vice versa it can change sendes string back to variables by sscanf() in that remote Arduino.
Problem is how to do same using Software Serial library with many variables ready to transfer?
I have used VirtualWire also without radio link but now I have 50m wire between Arduinos.
This works but using cable between devises communication is wrong made, says anybody.
In attachment are example codes Tx and Rx and 3pcs integer data which are wanted to transfer.

SoftwareSerialRemoteMaster2.ino (885 Bytes)

SoftwareSerialRemoteSlave2.ino (1.04 KB)

Problem is how to do same using Software Serial library with many variables ready to tranfer?

The "problem" is in the statement that the data is transferred using sprintf(). It is not. It is assembled in the array using sprintf() and then send using VirtualWire or SoftwareSerial.

but now I have 50m wire between Arduinos.

50 meters is far too long for a serial cable. You need to use RJ485 connectors, cable, and protocol for those distances.

Nick Gammon has information on his site about RJ485.