query_sql("INSERT INTO `my_table` VALUES ('" + strcharinfo(0) + "')");
query_sql("SELECT `userid` FROM `login` WHERE `account_id` = " + getcharid(3),.@username$);
Why use a query to get Character name,nope, i don't want to get the username and userid. haha. i just used the term username/id bec. they're just the same.
query_sql("SELECT `name` FROM `char` WHERE `char_id` = " + getcharid(0),.@name$);
this one gets the name of the character right?
what i am looking for would be the userid, the one that we use to login,
Account name?nope, i don't want to get the username and userid. haha. i just used the term username/id bec. they're just the same.
query_sql("SELECT `name` FROM `char` WHERE `char_id` = " + getcharid(0),.@name$);
this one gets the name of the character right?
what i am looking for would be the userid, the one that we use to login,
query_sql("SELECT `userid` FROM `login` WHERE `account_id` = " + getcharid(3)),.@userid$;
follow up question on this one,query_sql("SELECT `userid` FROM `login` WHERE `account_id` = " + getcharid(3),.@username$);This returns UserName of the Account
Why use a query to get Character name,nope, i don't want to get the username and userid. haha. i just used the term username/id bec. they're just the same.
query_sql("SELECT `name` FROM `char` WHERE `char_id` = " + getcharid(0),.@name$);this one gets the name of the character right?
what i am looking for would be the userid, the one that we use to login,
you can get character name by "strcharinfo(0)"
if(@input$ == .@username$){dispbottom "Value Found";}dispbottom "No Results";
If the input userid exists in login table, then it will display "Value Found" Else it will display "No Resultsfollow up question on this one,query_sql("SELECT `userid` FROM `login` WHERE `account_id` = " + getcharid(3),.@username$);This returns UserName of the Account
Why use a query to get Character name,nope, i don't want to get the username and userid. haha. i just used the term username/id bec. they're just the same.
query_sql("SELECT `name` FROM `char` WHERE `char_id` = " + getcharid(0),.@name$);this one gets the name of the character right?
what i am looking for would be the userid, the one that we use to login,
you can get character name by "strcharinfo(0)"
input @input$;query_sql("SELECT `userid` FROM `login` WHERE `userid` = " + @input$,.@username$);if the query did not return any value/result. should this script work like this
hypothetically its just a sample but it should be working right?if the input has the same value or correct value from the db it should give me "value found"Code:if(@input$ == .@username$){dispbottom "Value Found";}dispbottom "No Results";
if the username that i entered is correct.
if(@input$ == .@username$){ dispbottom "Value Found";} else { dispbottom "No Results";}
We use essential cookies to make this site work, and optional cookies to enhance your experience.