So anyway I have a piece of code for a IFS fractal generator in development that is intended to save all the global variables to a parameter file for reloading or sending. (There is also a save image code, but that works fine.) So here's my code:
message_alpha(.8)
message_text_font('Agency FB',12,c_black,1)
message_input_font('Agency FB',14,c_red,1)
action = show_message_ext('','Save','Load','')
if action = 1
{
namestring = get_string('Parameter Filename','new_fractal')
if show_question('Save Parameters?') = true
{
activefile = file_text_open_write('' + string(namestring) + '.par')
file_text_write_string(activefile,'[Start IFS Generation Parameters]#' + string(global.direction[0]) + '#' + string(global.direction[1]) + '#' + string(global.direction[2]) + '#' + string(global.direction[3]) + '#' + string(global.direction[4]) + '#' + string(global.direction[5]) + '#' + string(global.direction[6]) + '#' + string(global.direction[7] + '#' + string(global.startpos) + '#' + string(global.translate[0]) + '#' + string(global.translate[1]) + '#' + string(global.color) + '#' + string(global.colorspeed) + '#' + string(global.maxiterations) + '#[End IFS Generation Parameters])
file_text_close(activefile)
}
}
if action = 2
{
namestring = get_string('Parameter Filename','new_fractal')
if show_question('Load Parameters') = true
{
exit *
}
}*This event has yet to be coded, but I'm not gonna bother if this bug can't be fixed.All variable have been initialized, no worries. However, when I run the game, it returns this error:
___________________________________________
FATAL ERROR in
action number 1
of Mouse Event for Left Button
for object paramshot:
COMPILATION ERROR in code action
Error in code at line 17:
namestring = get_string('Parameter Filename','new_fractal')
at position 31: Symbol , or ) expected.
As you can see, this error makes no sense. I tried deleting the block of code but I get the same error, only referencing position 1 of line 14. Why is this error coming up?
Edited by _259432, 09 June 2012 - 07:31 PM.











