Sagiy19 Posted September 11, 2010 Share Posted September 11, 2010 (edited) Error during Tick in script 'MyScript.MyClass':System.NullReferenceException: Object reference not set to an instance of an object. at MyScript.MyClass.On_KeyDown(Object sender, KeyEventArgs e) at GTA.Script.ProcessEvents() at GTA.Script.DoTick() at GTA.ScriptThread.OnTick() That's what the ScriptHook's log file says every time my script crashes. The thing is I do not use the ticks in my script... so... I don't know. Anybody? Oh, and I use the GTAIV .Net Script Hook v0.893 BETA. Edited: Oh, and the key press works fine.. it gets inside the function... but then it gives me this error. Edited September 11, 2010 by Sagiy19 Link to comment https://gtaforums.com/topic/458957-q-how-do-i-solve-this-net-problem/ Share on other sites More sharing options...
TheSiggi Posted September 11, 2010 Share Posted September 11, 2010 Error during Tick in script 'MyScript.MyClass':System.NullReferenceException: Object reference not set to an instance of an object. at MyScript.MyClass.On_KeyDown(Object sender, KeyEventArgs e) at GTA.Script.ProcessEvents() at GTA.Script.DoTick() at GTA.ScriptThread.OnTick() That's what the ScriptHook's log file says every time my script crashes. The thing is I do not use the ticks in my script... so... I don't know. Anybody? Oh, and I use the GTAIV .Net Script Hook v0.893 BETA. Edited: Oh, and the key press works fine.. it gets inside the function... but then it gives me this error. mhhh...why is this section called "III Coding" ah! maybe because its for III Coding! this belongs into IV Coding don't repost! wait until the moderators move it there cheers Link to comment https://gtaforums.com/topic/458957-q-how-do-i-solve-this-net-problem/#findComment-1060121433 Share on other sites More sharing options...
Sagiy19 Posted September 11, 2010 Author Share Posted September 11, 2010 (edited) Oh, nevermind, I figured it out.... I had a null reference in one of my variables. mhhh...why is this section called "III Coding" ah! maybe because its for III Coding! this belongs into IV Coding don't repost! wait until the moderators move it there cheers Oh, I know what happen, I viewed the "Modding Rules" thread and that took me to the III Era Modding and then I posted this. Edited September 11, 2010 by Sagiy19 Link to comment https://gtaforums.com/topic/458957-q-how-do-i-solve-this-net-problem/#findComment-1060121438 Share on other sites More sharing options...
Sagiy19 Posted September 11, 2010 Author Share Posted September 11, 2010 (edited) delete Edited September 11, 2010 by Sagiy19 Link to comment https://gtaforums.com/topic/458957-q-how-do-i-solve-this-net-problem/#findComment-1060121581 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now