Jump to content

Recommended Posts

local vnumtest = item.get_vnum()
local rowvnum = tonumber(vnumtest-53000)
local test_query = game.mysql_query("SELECT pet"..rowvnum.." from player.pet_level WHERE pid="..pc.get_player_id().." LIMIT 1")
local coins_now = tonumber(test_query.pet"..rowvnum..")
pet_info_map = {
[53001]     = { 34001, "Lv."..coins_now.." Ph" ,0},


No work... Help plz
Link to comment
https://metin2.dev/topic/1537-problem-tonumber/
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

local vnumtest = item.get_vnum()
local rowvnum = tonumber(vnumtest-53000)
local test_query = game.mysql_query("SELECT pet1 from player.pet_level WHERE pid="..pc.get_player_id().." LIMIT 1")
local coins_now = tonumber(test_query.pet1)
pet_info_map = {
[53001]     = { 34001, "Lv."..coins_now.." Ph" ,0},
 
When you install pet1 all works. As soon as I pet1 on rownum, then everything stops working
 
pet1 - work
pet"..rownum.." - no work
 
Sorry my bad English
 
Link to comment
https://metin2.dev/topic/1537-problem-tonumber/#findComment-11400
Share on other sites

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.