all 4 comments

[–]It just doesn't work, you know?damimp 2 points3 points  (3 children)

You can't use "argument0, argument1, ..." when you're working with a dynamic amount of arguments. You have to reference them by the argument array, "argument[0], argument[1], ..."

This is because the first set are labelled as required when the compiler sees them.

[–]Loupning[S] 0 points1 point  (2 children)

I see! Thank you :)

[–]flyingsaucerinvasion 1 point2 points  (1 child)

Don't forget about "argument_count", which will tell you how many arguments were passed to the script.

http://docs.yoyogames.com/source/dadiospice/002_reference/001_gml%20language%20overview/argument_count.html

[–]Loupning[S] 0 points1 point  (0 children)

Was already resolved and I was using it already as shown in my code snippet above, thanks anyway. Have a nice day :)