passing value to a function

As always, you have some options on how to implement your program. In the code below:

void loop(){
  int slaveID;

  for (slaveID = 0; slaveID < 25; slaveID++) {
    transmitt(slaveID);
  }
  delay(5000);    // Pause for 5 seconds
}

void transmitt(int slv){
  char text[13];

//  sprintf(text, "%d-No Signal", slv);
  itoa(slv, text, DEC);
  strcat(text, "-No Signal");
  
  Serial.println(text);
  //radio.write(&text,sizeof(text));
}

the version that used the sprintf() function uses 3306 bytes of flash and 200 bytes of SRAM. However, the sprintf() function is very flexible and powerful, but your program only uses a small fraction of that power. The alternative version may look longer, but it only uses 2136 bytes of flash memory and 198 bytes of SRAM. (Compiled on a Mega2560.) While memory resources don't come into play in such a short program, it could at sometime in the future. The sprintf() function is a great tool to hang on your belt, but often is overkill when a simple itoa()/strcat() combo will get 'er done and deserves to hang on that same belt.