MrLoKi Posted January 24, 2022 Share Posted January 24, 2022 Hello Guys... I want to create an account system ! I want this account system , To Support For +200 Player In Server ! Thank you for your help in this regard Link to comment
The_GTA Posted January 24, 2022 Share Posted January 24, 2022 Hello MrLoki, 1) what kind of help do you expect in this regard? 2) do you have any idea how your "account system" should work, look like, etc? 3) are there any examples of account systems you are thinking of? Link to comment
MrLoKi Posted January 24, 2022 Author Share Posted January 24, 2022 I want to send the information to the database That the submitted information does not cause the server to log shot ! I designed it this way: function SetPlayerDb(Player,Data,Value) Tables[ID][Data] = Value dbExec(getMySQLC(),"UPDATE `UserAccount` SET `"..Data.."` = '"..Value.."' WHERE `User` = '"..tonumber(Tables[ID]["User"]).."'") return true end end Do you have an idea? Link to comment
The_GTA Posted January 24, 2022 Share Posted January 24, 2022 I see that your MySQL database query building is subject to SQL-injection attacks. You should use the dbPrepareString function to mitigate this issue, like so... local conn = getMySQLC() local sqlquery = dbPrepareString(conn,"UPDATE `UserAccount` SET `?` = '?' WHERE `User` = '?'", Data, Value, tonumber(Tables[ID]["User"])) dbExec(conn, sqlquery) Link to comment
MrLoKi Posted January 24, 2022 Author Share Posted January 24, 2022 (edited) This script , +200 supports the Player ?! You have a better offer ? Edited January 24, 2022 by MrLoKi Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now