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
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
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • 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.