int var=30;char buffer[200];// format a string in buffer. %i is a placeholder that means 'integer', the next argument will be used to replace itscr_snprintf(buffer, 200, "var = %i", var);// should read "var = 30"TethysGame::AddMessage(-1, -1, buffer, 0, 0);