Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 03:20

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



How to make a return using os.execute?

Discussion on How to make a return using os.execute? within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
stσям™'s Avatar
 
elite*gold: 350
Join Date: Oct 2011
Posts: 176
Received Thanks: 49
How to make a return using os.execute?

Hi, How do i make this return

function getcoins()
os.execute("mysql -u root player --execute='SELECT coins FROM player WHERE id = "..pc.get_player_id()..";'")
end

Like this:

local a = mysql_query("SELECT coins from player.player WHERE id="..pc.get_account_id().." LIMIT 1;")[1][1]
a = tonumber(a)
return a

(im using os.execute because i'm getting a error when i use mysql_query)
stσям™ is offline  
Old 10/04/2014, 20:06   #2
 
elite*gold: 39
Join Date: Jun 2009
Posts: 500
Received Thanks: 212
you have to write the result of the query in a file through the shell command "mysql" with "mysql [...] --execute='[..]' > filename.txt" and then read the file and remove the file
.HC'Destrox is offline  
Reply


Similar Threads Similar Threads
[Ask]Please Make Cheat Return
11/22/2011 - 12Sky2 - 2 Replies
FOR All Cheaters Can Make a cheat-Return TO Twelvesky2 our games .. Cheating as: -cheat-automatic drop Auto-pill -> God mode -> Speedlight move -> Mega-hit -> Push'n'revive -> Teleport to the stored -> Seeker hack time etc.



All times are GMT +1. The time now is 03:21.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.