Having issues with this Show Picture script call

Ruby:
number = $game_variables[23] + 1
x = $game_variables[23] * 50
y = 300
@p1 = $game_variables[24]
@p2 = 0
@p6 = 25
@p7 = 25
@p8 = 255
@p9 = 0
$game_screen.pictures[number].show
(@p1,@p2,x,y,@p6,@p7,@p8,@p9)

So this is what the script call looks like. $game_variables[24] is already a string. It's defined as $game_variables[24]="T_M_R"

And the syntax for Show Pictures are the following:
$game_screen.pictures[NUMBER].show(file name, ORIGIN, X, Y, ZOOM_X, ZOOM_Y, OPACITY, BLEND_TYPE)

I get a syntax error, but I don't know what could be wrong with it, and I know the picture line is the one because when I remove it, I don't get any errors.

SOLUTION FOUND BUT I STILL HAVE QUESTIONS
I guess it's just "script call hates line breaks." I changed it to the following that, for some reason, works and only thing I can think of is the line break is different as I know script call is something else when it comes to how it deals with line breaks. For future reference, is there any other ways to deal with line breaks like these?

Ruby:
@NUM = $game_variables[23] + 1
x = $game_variables[23] * 50
y = 300
@p1 = $game_variables[24]
@p2 = 0
@p6 = 25
@p7 = 25
@p8 = 255
@p9 = 0
$game_screen.pictures[@NUM].show(@p1,
@p2, x, y, @p6, @p7, @p8, @p9)
Yeah, line breaks may affect the parsing of your scriptlet there but for a slightly different reason: you can't separate a parenthesis from the method name itself.

By the way, you really need to keep track of all those values?
As you may know by now, you can call @instance variables created in one script call from another script call command. All of them will work as if you were working inside the Interpreter / Game_Interpreter class... because that's exactly what you're doing there even if you don't notice it at first.
Yeah, line breaks may affect the parsing of your scriptlet there but for a slightly different reason: you can't separate a parenthesis from the method name itself.
Ahhhh ok.

By the way, you really need to keep track of all those values?
As you may know by now, you can call @instance variables created in one script call from another script call command. All of them will work as if you were working inside the Interpreter / Game_Interpreter class... because that's exactly what you're doing there even if you don't notice it at first.
I could get rid of @p2 through @p9, but I did that because I copy/pasted the syntax from the script editor and to ensure I had all arguments (and to make it easier to look at while doing it), I took, for example, parameters[1] and changed it to @p1.

So basically, nah, I don't need to keep track of all of them.

Original thread: https://forums.rpgmakerweb.com/threads/having-issues-with-this-show-picture-script-call.171993/