Gium's Forum Posts

  • Hi, I tested the functions by popping up some test texts here and there, the function works. The problem remains that the ads don't start I don't know how to solve it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I put some items to try(or console logs).

    As for test mode I have already tried it but ad mob gives you the option to put test devices by giving them your device id for advertising in such a way that you don't risk banning.

    you can reach it from the admob control panel in "settings, test devices"

  • I am testing on my android phone, previously listed on admob as a device for testing.

    Whether it is standard or not I honestly don't know but my idea in the workflow was:

    At layout startup create it, at action x show it and after showing it recreate it.

    I can put console logs to see if it works but underneath there is another function "stop to show video" and the button works obviously the advertisement doesn't start but the button works.

  • Hello everyone, it's been a while that in my little game the ads don't appear.I've been trying to fix it for a while but still they keep not appearing.How can I fix it?

    I have tried either putting them as global variables or directly in the event sheet but nothing.

    I have them preload at startup but they do not appear.The ad id is correct. The msg pre loaded by admob to accept cookies loads it but the rest does not. how can i solve it?thanks a lot

    Tagged:

  • with the syntax you suggested with adding the full path works great! thank you so much for the support!!!

    i leave the snippet of the code i used.

    rgbex255(JSON.Get(".message.content.background_r"), JSON.Get(".message.content.background_g"), JSON.Get(".message.content.background_b"))

  • Hi, thanks for reposting. i tried as you said but it doesn't set anything. I will try to get the response set with: "rgbex255(4, 170, 109)" and see if it sets it. Anyway the snippent of the code is in the screen I attach the answer is as follows:

    {

    "message": {

    "content": {

    "title": "Tutto ok!",

    "title_color": "#00000",

    "title_dim": "1.2em",

    "descr": "Fallo passare va!",

    "descrColor": "#00000",

    "descr_dim": "0.8em",

    "background_hex": "#04aa6d",

    "background_rgb": "rgb(4, 170, 109)"

    }

    }

    }

    thank you very much!

  • Hello everyone, I have the following problem.

    I try to set the color of an asset dynamically, I set the ajax, the server in the json passes me some values which I also pass in a global variable to see if it passes and passes them, but the color does not set. it turns black for me.

    I used the following syntax: JSON.Get(".background_rgb").

    i also had two response types set:

    1) background_hex"

    2) background_rgb.

    despite i choose either way it doesn't set the color. how can i fix it?

    Thank you very much.

    Tagged:

  • Guys, I finally succeeded! thank you all so much for the great support you gave me!

    I leave a snippet, for all those who will run into these problems and maybe support them! Thank you very much

  • now pass the string correctly, thank you very much!!!

    only now it keeps making the post still with the empty string -.-'

  • I was finally able to print the message on the response screen from the server.

    But despite several attempts I can't set the string I get inside the json file before posting it.

    {

    "payload":{

    "qr_data":"string must be entered here",

    "get_var":{

    "get1": "valueGet1",

    "get2": "valueGet2"

    }

    }

    }

    any suggestions?

    With the code I entered it inserts it but inserts it in the wrong place.

    thank you very much

  • You're right, I didn't pay attention. I edited the snippet screen in English, I thank you for the effort you made to give me an answer. and I thank you for the advice you are giving me. I will try in the day and give feedback. Thank you very much :)

  • i tried but it doesn't set or set anything. i'm not understanding where i'm going wrong.

  • Hi, thank you for your reply.

    I am supposed to scan a qrcode, which has a string inside, ignore it in a json at a certain location and then post it, the response I get from the server a portion I would like to print it on the screen. how can I do it?

    thanks for sharing me the function "tokenat()" now i am going to study it. :)

  • hello i would like to make to print on screen the server response following the post i would like it to print the title value inside content.

    I wrote this syntax: JSON.Get("message.content.title") but it always returns zero.

    how can i solve i attach the server response.

    also is it possible to ignore a string inside a json file? i would like a string inside the text "qr-data" to be ignored. Thank you very much to anyone who will answer me

    {"QRcodepush":{"payload":{"qr_data":"ALiCzsbVn8pqibwSfgo2l1KmzmC7fiU4owT3A1666003771287"}},"{\n \"payload\":{\n \"qr_data\":\"\",\n \"get_var\":{\n \"get1\":\"valueGet1\",\n \"get2\":\"valueGet2\"\n } \n }\n}":{},"{\"message\":{\"active\":true,\"position\":\"top\",\"delay\":\"3000\",\"style\":{\"width\":\"100%\",\"background\":\"#FF5751\",\"border\":\"2px\",\"borderColor\":\"#FF5751\"},\"icons\":{\"left_ico\":true,\"left_ico_image\":\"fa-solid fa-question\",\"left_ico_color\":\"#00000\",\"left_ico_dim\":\"30px\",\"cancel_ico\":true,\"cancel_ico_color\":\"#000000\",\"cancel_ico_dim\":\"5px\"},\"content\":{\"title\":\"Non riconoscro il QRCODE\",\"title_color\":\"#00000\",\"title_dim\":\"1":{"2em\",\"descr\":\"qr_data: \",\"descrColor\":\"#00000\",\"descr_dim\":\"0":{"8em\"},\"cta\":{\"button\":false,\"button_background\":\"#ffffff\",\"text_button\":\"OK\",\"text_buttonColor\":\"#000000\"}}}":{}}}}

  • Continuous sending json file, how to solve.

    I would like it to do one push instead of so many.

    how can i solve it?