Jump to content

fetchRemote


developa

Recommended Posts

hello, I have a problem with the fetchRemote function, exactly this condition does not work for me:
 

fetchRemote:
fetchRemote(..., callback, "", false, client)

function callback(response, errno, player)
    if errno == 0 then -- worked
    	outputConsole(response) -- when 'success' is shown, the condition below is not executed, 'else' is fulfilled
    	if response == "success" then -- error :(
	outputConsole("worked") -- never shows, even if 'response' is written 'success' below
     	else
	outputConsole(response) -- here the second message 'success' will be shown :(
      	end
    end
end

help! :(

sorry for my english

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