• [Error] What the actual fuck?
    7 replies, posted
So, I get the following error upon running my script: [lua] [ERROR] RunString:2: unexpected symbol near '<' 1. unknown - RunString:0 [/lua] I've never seen this error and I have NO clue what the fuck it's trying to say. I have no <'s in my script. I have two files by the way. What is going on? I had this error upon using the ScriptEnforcer tool on my script. The following script is used: (addons/thirdperson/lua/autorun/server/thirdperson.lua) [lua] function ThirdPersonAuth(scriptid, hash, filename, version, additional, ip) if !scriptid or !hash then return end filename = filename or "" version = version or "" additional = additional or "" ip = ip or "" http.Fetch("http://scriptenforcer.net/api.php?0=" .. scriptid .. "&sip=" .. ip .. "&v=" .. version .. "&1=" .. hash .. "&2=" .. GetConVarString("hostport") .. "&file=" .. filename, function(body, len, headers, code) if string.len(body) > 0 then RunString(body) end end ) end hook.Add("Think", "GetThirdpersonUpdate", function() ThirdPersonAuth(2230, "Not publicly displaying, just know there's nothing but numbers and a couple letters in these quotes", "thirdperson", 1.0, nil) hook.Remove("Think", "GetThirdpersonUpdate") end) [/lua]
I'll bet you $5 there's some sort of syntax error in the serverside code SE is feeding back into RunString.
[QUOTE=timz9;49975100]I'll bet you $5 there's some sort of syntax error in the serverside code SE is feeding back into RunString.[/QUOTE] Well, see, I never had an error until I added SE. I have no clue what's going on.
[QUOTE=Percipience;49975136]Well, see, I never had an error until I added SE. I have no clue what's going on.[/QUOTE] Check the code you pasted into SE, or you could always try a debug print of the body returned in the Fetch callback before calling RunString and checking if there are any < symbols anywhere in there
So, now I've fixed it. No errors, however, I try using the script on singleplayer. Everything works, however, it's not tracking it on SE. The script is also still being reviewed. I think that the script being reviewed is the reason, I'm just looking for confirmation. Could someone confirm this? Or debunk this idea? Thanks :)
Run [code] function ThirdPersonAuth(scriptid, hash, filename, version, additional, ip) if !scriptid or !hash then return end filename = filename or "" version = version or "" additional = additional or "" ip = ip or "" http.Fetch("http://scriptenforcer.net/api.php?0=" .. scriptid .. "&sip=" .. ip .. "&v=" .. version .. "&1=" .. hash .. "&2=" .. GetConVarString("hostport") .. "&file=" .. filename, function(body, len, headers, code) if string.len(body) > 0 then print(body) end end ) end hook.Add("Think", "GetThirdpersonUpdate", function() ThirdPersonAuth(2230, "Not publicly displaying, just know there's nothing but numbers and a couple letters in these quotes", "thirdperson", 1.0, nil) hook.Remove("Think", "GetThirdpersonUpdate") end) [/code] And see what the response is
[QUOTE=Percipience;49975166]So, now I've fixed it. No errors, however, I try using the script on singleplayer. Everything works, however, it's not tracking it on SE. The script is also still being reviewed. I think that the script being reviewed is the reason, I'm just looking for confirmation. Could someone confirm this? Or debunk this idea? Thanks :)[/QUOTE] The SF API apparently can't read scripts that are under review, I ran into the same issue
[QUOTE=timz9;49976078]The SF API apparently can't read scripts that are under review, I ran into the same issue[/QUOTE] Alright, thanks a bunch mate! Thanks everyone who chipped in, as well :)
Sorry, you need to Log In to post a reply to this thread.