• Lua error "On Success"
    1 replies, posted
So i download this plugin...[url]http://forums.ulyssesmod.net/index.php?topic=4992.0[/url] and it gave me an error because http.Get is outdated. So i changed it to http.Fetch The thing works, i can play audio of videos which is what i wanted. However it still gives an error which i dont want because my player can use this(Clientside) So heres the error: [lua] [ERROR] lua/includes/modules/http.lua:34: attempt to call upvalue 'onsuccess' (a string value) 1. unknown - lua/includes/modules/http.lua:34 And heres the file i edited [url]http://pastebin.com/M2uGtUCp[/url] Would appreciate help on this.
[QUOTE=Defender2015;42909106]So i download this plugin...[url]http://forums.ulyssesmod.net/index.php?topic=4992.0[/url] and it gave me an error because http.Get is outdated. So i changed it to http.Fetch The thing works, i can play audio of videos which is what i wanted. However it still gives an error which i dont want because my player can use this(Clientside) So heres the error: [lua] [ERROR] lua/includes/modules/http.lua:34: attempt to call upvalue 'onsuccess' (a string value) 1. unknown - lua/includes/modules/http.lua:34 And heres the file i edited [url]http://pastebin.com/M2uGtUCp[/url] Would appreciate help on this.[/QUOTE] When you call http.Fetch, you are supposed to give a callback function. From your error message, "attempt to call upvalue 'onsuccess' (a string value)" it is trying to call the callback function, but you have given it a string instead of a function. But, looking at the code you link to, I can't actually see Fetch being called anywhere in there, it's still Get...
Sorry, you need to Log In to post a reply to this thread.