Jump to content

[HELP] Query does not work!


Recommended Posts

Hay!

I try add new system.

 

This is oryginal topic:

 

 

 


	
		
			
				
				SYSERR: Jan 11 18:18:37 :: RunState: LUA_ERROR: [string "mds"]:2: attempt to concatenate global `stan' (a nil value)
				 
				
			
		
	



Quest:

 
quest mds begin
    state start begin
        when login begin
            loop_timer("czsss", 10)
        end
        when czsss.timer begin
            xx = query("SELECT cash FROM account.account WHERE id = '"..pc.get_account_id().."';")
            cmdchat("Mds "..xx)
        end
    end
end
 
If xx = mysql_query("SELECT cash from account.account WHERE id="..pc.get_account_id().." LIMIT 1;")[1][1] is the same errors in sysser.
 
I modified this line:
def __Mds(self, coins):
    import constInfo
    constInfo.mds = int(coins)
 
Now is:
 
 
def __Mds(self, cash):
    import constInfo
    constInfo.mds = int(cash)
 
Maybe this run errors ?
 

 

 

Where is a problem ?

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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.