Hello guys,
i have a big problem in my Code.
I put a .Ini Data on my Website so the Program on any device can reached it and take the data from it.
But in some cases (like every 5 or 6 times) i get this error:
So i dont get it, why the most of the time the code work normal and then one time it crashes....
This ist my Code from the Game_Control Object:
HTTP Event:
Please help me
i have a big problem in my Code.
I put a .Ini Data on my Website so the Program on any device can reached it and take the data from it.
But in some cases (like every 5 or 6 times) i get this error:
Code:
file_text_write_string argument 2 incorrect type (undefined) expecting a String (YYGS)
at gml_Object_Game_Control_WebAsyncEvent_1 (line 11) - file_text_write_string(file,result);
############################################################################################
--------------------------------------------------------------------------------------------
stack frame is
gml_Object_Game_Control_WebAsyncEvent_1 (line 11)
So i dont get it, why the most of the time the code work normal and then one time it crashes....
This ist my Code from the Game_Control Object:
HTTP Event:
Code:
var result, evid;
evid = ds_map_find_value(async_load, "id");
switch (evid) {
case async_ini:
result = ds_map_find_value(async_load, "result");
file_delete("Data.ini");
file = file_text_open_write( "Data.ini" );
file_text_write_string(file,result);
file_text_close(file);
alarm[0] = 10;
break;
}
Please help me