FluffypoopoLvl 55
You are missing a table
You are missing a table
um what do you mean (elaborate plz)?
the overall_info table
Hope you are ok with me remixing it so I could fix your issue
https://studio.code.org/projects/applab/diXMHHT013nY6dGjFoKrgn2ZNfqcB4B8WbhhjYCV1k4/edit
the overall_info table is created on line 21 tho :/
Just copy and past the entire script and that should fix your unable to log in issue
ohhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh thx!
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 other issues?
Fluffypoopo Not yet :D
Any errors after copying and pasting the code?
Are there any Issues?
I have discovered an issue with the messaging system I'll work on it for you
oh um thx
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
and no you are not asking too much I am here to help