Traceur3RUN 75 Posted May 15, 2018 Share Posted May 15, 2018 hey, i need a new Function to load from account.account field: some_text can someone help? and use on quest like local get_text = pc.get_some_text if get_text = "koxmen" then else end Link to comment Share on other sites More sharing options...
Premium WeedHex 636 Posted May 15, 2018 Premium Share Posted May 15, 2018 Use a query lol Link to comment Share on other sites More sharing options...
Traceur3RUN 75 Posted May 15, 2018 Author Share Posted May 15, 2018 3 godziny temu, WeedHex napisał: Use a query lol give me code, because i try but this doesn't work i think need mysql_select db etc im weak on lua Link to comment Share on other sites More sharing options...
Premium WeedHex 636 Posted May 15, 2018 Premium Share Posted May 15, 2018 local ID = pc.get_player_id() local get_text = mysql_query("SELECT text FROM account.account WHERE 'id' = ID;") say(tostring(get_text)) Let's try, i wrote it in 2 min. Link to comment Share on other sites More sharing options...
Traceur3RUN 75 Posted May 15, 2018 Author Share Posted May 15, 2018 1 godzinę temu, WeedHex napisał: local ID = pc.get_player_id() local get_text = mysql_query("SELECT text FROM account.account WHERE 'id' = ID;") say(tostring(get_text)) Let's try, i wrote it in 2 min. error on compile Link to comment Share on other sites More sharing options...
Premium WeedHex 636 Posted May 15, 2018 Premium Share Posted May 15, 2018 what error?? Link to comment Share on other sites More sharing options...
Traceur3RUN 75 Posted May 16, 2018 Author Share Posted May 16, 2018 7 godzin temu, WeedHex napisał: what error?? error: Abort trap (core dumped). Link to comment Share on other sites More sharing options...
Traceur3RUN 75 Posted May 17, 2018 Author Share Posted May 17, 2018 refresh Link to comment Share on other sites More sharing options...
Bot Metin2 Dev 4940 Posted May 17, 2018 Bot Share Posted May 17, 2018 Does LUA have mysql_query() function? Or it is a function from a source? I can't find and I've never been using this. What about this? Link to comment Share on other sites More sharing options...
Traceur3RUN 75 Posted May 17, 2018 Author Share Posted May 17, 2018 34 minuty temu, Chyu ^^ napisał: Does LUA have mysql_query() function? Or it is a function from a source? I can't find and I've never been using this. What about this? im weak on lua... i don't know how create it why im asking there lol Link to comment Share on other sites More sharing options...
Bot Metin2 Dev 4940 Posted May 17, 2018 Bot Share Posted May 17, 2018 Oh, yea. I found it in functions list. Post error during compilation. Link to comment Share on other sites More sharing options...
Traceur3RUN 75 Posted May 17, 2018 Author Share Posted May 17, 2018 2 godziny temu, Chyu ^^ napisał: Oh, yea. I found it in functions list. Post error during compilation. Ok now no error but this doesnt work. Do you test it? Maybe you have it on questlib. Link to comment Share on other sites More sharing options...
Traceur3RUN 75 Posted May 18, 2018 Author Share Posted May 18, 2018 bump Link to comment Share on other sites More sharing options...
Premium Syreldar 1890 Posted May 18, 2018 Premium Share Posted May 18, 2018 use mysql_direct_query. Works like a charm. "Nothing's free in this life. Ignorant people have an obligation to make up for their ignorance by paying those who help them. Either you got the brains or cash, if you lack both you're useless." Syreldar Link to comment Share on other sites More sharing options...
Traceur3RUN 75 Posted May 19, 2018 Author Share Posted May 19, 2018 Dnia 18.05.2018 o 17:43, Syreldar napisał: use mysql_direct_query. Works like a charm. yes if you have a function or edit source.... bump Link to comment Share on other sites More sharing options...
Premium Syreldar 1890 Posted May 20, 2018 Premium Share Posted May 20, 2018 16 hours ago, Traceur3RUN said: yes if you have a function or edit source.... bump If you don't edit source in 2018, what do you expect to accomplish? Ofc it's needed. "Nothing's free in this life. Ignorant people have an obligation to make up for their ignorance by paying those who help them. Either you got the brains or cash, if you lack both you're useless." Syreldar Link to comment Share on other sites More sharing options...
Traceur3RUN 75 Posted May 20, 2018 Author Share Posted May 20, 2018 bump Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now