J
John
Guest
I am trying to make an update/maintenance checker in my game. To do this I used the Async - HTTP event to connect to a website and write down the information on it. It works probably 80 percent of the time, but every once in a while it crashes the game (I have attached an image of the message it gives me). It has something to do with the ds_map_find_value not working all the time. Here is the code I am using.
//Check for Update (Ini File)
var re
var eid
eid = ds_map_find_value(async_load,"id");
switch(eid)
{
case async_ini:
re = ds_map_find_value(async_load,"result")
file = file_text_open_write("Maintanance.ini")
file_text_write_string(file,re)
file_text_close(file)
break;
}
If anyone could provide some insight as to why it works most of the time but then crashes sometimes, that would be great! Thanks.
//Check for Update (Ini File)
var re
var eid
eid = ds_map_find_value(async_load,"id");
switch(eid)
{
case async_ini:
re = ds_map_find_value(async_load,"result")
file = file_text_open_write("Maintanance.ini")
file_text_write_string(file,re)
file_text_close(file)
break;
}
If anyone could provide some insight as to why it works most of the time but then crashes sometimes, that would be great! Thanks.
Attachments
-
218.6 KB Views: 3