makkibo's Recent Forum Activity

  • HI, Is there a problem with the compiler?

    I am getting errors... I had already compiled 3 versions without problems and today after modifying a couple of things it does not compile any more ... (Do not change anything related to the keys or admob or anything like that)

  • OK great, now that work well... Thanks so much for your time!!

  • Ah ok, with the word "array"? because this JSON do not have names o keys, only values...like the example.

  • Ok, it's not that simple ...

    Because the JSON doesn't bring the 3 data that way.

    Sorry for not giving the data all together, I thought it was going to be confusing to understand, and I thought that what I wanted to do was simpler.

    Each JSON (for each X) brings 3 arrays, of which each one brings 4 objects, and I have to take object "4" from each array as an index.

    In the JSON they are the same object in different arrays. I do not know if it is well understood.

    Something like that...

    X0 -> JSON [ ["111","112","113","114"] ["121","122","123","124"] ["131","132","133","134"]]

    X1 -> JSON [ ["211","212","213","214"] ["221","222","223","224"] ["231","232","233","234"]]

    ..

    ..

    X5 -> JSON [ ["511","512","513","514"] ["521","522","523","524"] ["531","532","533","534"]]

    So in each X loop I have to enter in different Y, 3 different values ​​X0 (Y1, Y2, y3) ... X5 (Y1, Y2, Y3) where each Y are the values ​​that end in 4...

    In the JSON they are the same object in different arrays. I do not know if it is well understood.

    If you can solve this I will be eternally grateful

  • That part I get to do well and it returns the values ​​of the indices of each X that I manage to print on the screen, but I cannot get them to enter the array properly.

  • I request the JSONs by ajax from a server for each X

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • it is an array in the program in which I have to load different data from differents JSON.

    Suppose

    I have an array of 5x4 elements

    On the x-axis are the names. (X0, X1, X2 and X3)

    And to each X I have to add in

    3 Y, (Y1, Y2, Y3)

    Where each Y comes from a JSON but each X is a different JSON.

    How would it be done?

  • Hello I have an array with 118 elements in X. (x0 to x117)

    For each of those elements I have to get 3 indices and append them to each Y.

    EX: for X0Y0, append in X0Y1 1st index,

    in X0Y2 2nd index

    and in X0Y3 the 3rd index ...

    Exported from a JSON that loads different data for each X

    I can't get it.

  • Thanks so much... this work really good!!!

  • In other consult i have this JSON results,

    And I can't get the intermediate values ​​either

    ("31743.95", "31795.00", "31715.00", "31750.68", "3113.974") For example

    [ > [ > 1626600600000, > "31743.95", > "31795.00", > "31715.00", > "31750.68", > "3113.974", > 1626601499999, > "98870777.70955", > 24287, > "1703.773", > "54098292.89283", > "0" > ],

    [ > 1626601500000, > "31750.67", > "31850.00", > "31700.53", > "31720.75", > "5885.388", > 1626602399999, > "187076704.82843", > 41161, > "2871.636", > "91296797.78024", > "0" > ],

    [ > 1626602400000, > "31720.74", > "31722.71", > "31547.99", > "31596.32", > "8358.152", > 1626603299999, > "264442181.43620", > 60650, > "3610.197", > "114242044.52215", > "0" > ]

    ]

    I appreciate in advance any possible help

    I can solve this part with

    JSON.GET(".1") or (".2") etc...

    But i cant take the first consult (BIDS) yet...

  • Hi. no, It doesn't work like that either ...

    (Loading the data from a web with ajax) The data is loaded well in Json, but it does not recognize me to insert it into the array.

    {

    "lastUpdateId":594008409335,

    "E":1626723768975,

    "T":1626723768970,

    "bids":

    [

    ["0.1624","44198"],["0.1623","84634"],["0.1622","71814"],["0.1621","33161"],["0.1620","119369"],["0.1619","31096"],["0.1618","91864"],["0.1617","29794"],["0.1616","49058"],["0.1615","260063"],["0.1614","29659"],["0.3248","81"]

    ]

    }

    This is the content of JSON.

    I need to separate the "Bids" values ​​into an array, and I can't get them.

    In other consult i have this JSON results,

    And I can't get the intermediate values ​​either

    ("31743.95", "31795.00", "31715.00", "31750.68", "3113.974") For example

    [

    [ 1626600600000, "31743.95", "31795.00", "31715.00", "31750.68", "3113.974", 1626601499999, "98870777.70955", 24287, "1703.773", "54098292.89283", "0" ],

    [ 1626601500000, "31750.67", "31850.00", "31700.53", "31720.75", "5885.388", 1626602399999, "187076704.82843", 41161, "2871.636", "91296797.78024", "0" ],

    [ 1626602400000, "31720.74", "31722.71", "31547.99", "31596.32", "8358.152", 1626603299999, "264442181.43620", 60650, "3610.197", "114242044.52215", "0" ]

    ]

    I appreciate in advance any possible help

  • Hi... can someone tell me how can i read this json info to get in an array?

    {

    "lastUpdateId": 592561749532,

    "E": 1626660385862,

    "T": 1626660385852,

    "bids": [ [ "16.69200", "123" ],

    [ "16.69100", "82" ]

    }

    I need only the content of bids...

makkibo's avatar

makkibo

Member since 27 Jun, 2021

None one is following makkibo yet!

Trophy Case

  • 3-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

5/44
How to earn trophies