[HELP] fixing this script

      #--------------------------------------------------------------------------
      # overwrite method: draw_current_and_max_values resinate
      #--------------------------------------------------------------------------
      def draw_current_and_max_values(dx, dy, dw, current, max, color1, color2)
        change_color(color1)
        total = ((current/max)*100)
        draw_text(dx, dy, dw, line_height, total + "/" +, 2)
      end

ok now i cant add % after the number..... number works tho
I can't test this personally. It has been a long time I worked with Ruby.

But, try adding "%%" instead of "%" and see if the percentage symbol show up or not.
      #--------------------------------------------------------------------------
      # overwrite method: draw_current_and_max_values resinate
      #--------------------------------------------------------------------------
      def draw_current_and_max_values(dx, dy, dw, current, max, color1, color2)
        change_color(color1)
        fmt = "%1.0f%%"
        total = sprintf(fmt, (current*100/max*100)/100)
        draw_text(dx, dy, dw, line_height, total, 2)
      end

all fixed thanks for helping me moggle
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/help-fixing-this-script.53050/