Jump to content

mysql help


huyjvguyen

Recommended Posts

i use it ? it's right?

  
function money(thePlayer, commandName) 
name = getPlayerName 
 local money = exports.mysql:query("SELECT `money` FROM `accounts` WHERE `id` = ' "..name .." ' ") 
if (money < 100) then outputChatBox("you are bad" , thePlayer ) 
else outputChatbox("you are handsome boy" , thePlayer) 
end 
end 
addCommandHandler("checkmoney", root, money) 
  

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...