S
Sarabia154
Guest
Hi guys,
So, i have a question about this... Im making a online card game. Now i'm programing the card object. The idea of this objects is to make a dynamic load like this...
When i create the generic object of the card, I pass and ID (idCard) and then with these ID find a json in the server, and load the info.
I make it perfect following a tutorial, and its works... in "Window" export. But, when i use HTML5 export its response me a diferent status and result.
I post the code bellow
How i need to do, to run this correctly in HTML5 export?
Thanks all!
So, i have a question about this... Im making a online card game. Now i'm programing the card object. The idea of this objects is to make a dynamic load like this...
When i create the generic object of the card, I pass and ID (idCard) and then with these ID find a json in the server, and load the info.
I make it perfect following a tutorial, and its works... in "Window" export. But, when i use HTML5 export its response me a diferent status and result.
I post the code bellow
Event Create:
http_get("http://192.168.1.10/id" + string(idCard) + ".html");
Event Asynchronous HTTP:
var json = async_load[? "result"]; // I get the result of the http_get into var
var map = json_decode(json); // I make a ds_map from the json
if (map == -1)
{
show_message("Can't get the information");
exit;
}
else
{
// HERE I LOAD THE CARD VARS
}
var map = json_decode(json); // I make a ds_map from the json
if (map == -1)
{
show_message("Can't get the information");
exit;
}
else
{
// HERE I LOAD THE CARD VARS
}
How i need to do, to run this correctly in HTML5 export?
Thanks all!