Most visitors online was 12720 , on 2 May 2024
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature currently requires accessing the site using the built-in Safari browser.
else {
Adapter.SetQuery("INSERT INTO user_rp_stats (user_id) VALUES (@userid)");
Adapter.AddParameter("userid", this.UserId);
Adapter.RunQuery();
}
}
Try adding a else statement before the query where it inserts the information into the database.
Code:else { Adapter.SetQuery("INSERT INTO user_rp_stats (user_id) VALUES (@userid)"); Adapter.AddParameter("userid", this.UserId); Adapter.RunQuery(); } }
Though why would you want to save a user's id?
I highly assume this is a static value and won't change.
Pretty sure you have to give a value for each parameter in that query?
Have you tried logging the result of the query or catching any exceptions?