So, I know I recently made a post, but for my chat, I have another problem now, and it's when I try to get the keyValues and set them to the message, it just won't fetch keyvalues, so can anybody help me - I'm trying not to look at brendan's chat because I want to do it on my own...
Here's my codefunction draw(){
msg = getKeyValue("messages"+room,function(a){return a})
//and more code but its not important here
}

  • Ravage replied to this.
  • Binary_Coder, TNitro7669, ItsDannyBruh, Zzeroiscool723, miztis, Mellow, ackvonhuelio, Ravage, Varrience, [WUT] Adam, cherrys, and 6 others viewed this.
  • cherrys This time, you're making your life way too complicated. getKeyValue isn't meant to be used the way you're doing it, because the function is not run as the getKeyValue's return value. It's just... run. You need to do this: getKeyValue("messages"+room,function(a){
    msg=a
    })

    Also, rate limiting exists, but that's completely outside the scope of a chat. If your keyValue fetching just stops, it's probably that. You can check the inspect console, and if it is being rate limited, it will say so: "rate limit reached".

    cherrys This time, you're making your life way too complicated. getKeyValue isn't meant to be used the way you're doing it, because the function is not run as the getKeyValue's return value. It's just... run. You need to do this: getKeyValue("messages"+room,function(a){
    msg=a
    })

    Also, rate limiting exists, but that's completely outside the scope of a chat. If your keyValue fetching just stops, it's probably that. You can check the inspect console, and if it is being rate limited, it will say so: "rate limit reached".

      Ravage Ok thanks I guess... can you tell me how to find inspect console
      I know I'm a really bad coder but don't judge

        cherrys Depends on the browser. In most of them, CTRL+I (letter "i") will open it. F12 also does it in Edge, but I don't know other than that.

        Also, nobody's judging, but honestly, CDO is not the place that will educationally enrich you. It's fine for a year or two if you're very young, but other than that, I'd do some real coding (C, Java, Python)...

        Chat