Jump to content

Recommended Posts

  • Premium

yes

 

The query is correct. Can you show us what you're doing with "kills" after the query executed? Also make sure your quest can use mysql queries via mysql_query() function :)

 

I'm trying after that to make and if statment comparing a number and the return of the query! example:

if kills >= 3 then
 syschat("hi")
end

Hello!

 

I'm trying to count the number of entries that I've in this table, but my function isnt working!

local kills = mysql_query("SELECT COUNT(*) FROM database.table")

Can anybody fix this?

 

local kills = mysql_query("SELECT COUNT(*) FROM database.table")

local row = table.getn(kills)

say("Kill : "..row)

 

 

try this

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.