I am working on a chat thing in app lab inspired by the MANY chats I've seen, but everytime I try to fix something like the login stuff another issue pops up! Plz help (but um don't publish it 'cause I am making this for just my friends)
https://studio.code.org/projects/applab/4wGkN87PtcfuxrICRBEQk1y1ACDZkhFWDvdUWcZqFWY
there is the link (and this time I used the off-topic tag so I don't get a strike 😅 )

um what do you mean (elaborate plz)?

Just copy and past the entire script and that should fix your unable to log in issue

Zeldaria you need to go to "Data" and create it so that error does not readily show up

Zeldaria Np happy to help if there are any error codes send them to me so I can fix them

Any errors after copying and pasting the code?

I have discovered an issue with the messaging system I'll work on it for you

onEvent("button1", "click", function( ) {
createRecord("messages", {fromUsername:(getText("text_input4")),Message:(getText("text_input1"))}, function(record) {
setText("text_input1", "");
});
});
onEvent("button2", "click", function( ) {
setText("text_area1", "");
readRecords("messages", {}, function(records) {
for (var i =0; i < records.length; i++) {
setText("text_area1", "From: "+ ((records[i].fromUsername + (" " + ("Message: " + records[i].Message)))));
}
});
});
onEvent("sign_up_1", "click", function( ) {
if (getText("username_input") == "") {
setText("Error", "Oops! Please enter a username!");
} else if ((getText ("password_input") == "")) {
setText("Error", "Oops! Please enter a password!");
} else {
var correctData={};
correctData.Password = getText("password_input");
correctData.Username = getText("username_input");
correctData.Account = getUserId();
createRecord("overall_info", correctData, function(record) {
console.log(record);
});
setScreen("new_user_welcome");
}
});
onEvent("sign_up2", "click", function( ) {
setScreen("sign_up_screen");
});
onEvent("sign_in_btn", "click", function( ) {
readRecords("overall_info", {Account:(getUserId())}, function(records) {
for (var q =0; q < records.length; q++) {
var x = (records[q]).Password;
}
if(x == getText("text_input6") ){
console.log("message");
setScreen("screen1");
}else
{
console.log("Incorrect password T-T");
}
});
});

There is the one that fixes the not logging your username issue

thx! Um, I really hope it isn't too much, but how do I make it so that you don't have to pretty much sign up every time you start? ('cause that's what's happened for me and)
I feel like such a noob even though I've been coding for a while '~_~

    oh I fixed the sign in while I was fixing the sign up

    Chat