Quantcast

Jump to content

» «
Photo

StartNewScript crashes the game?

No replies to this topic
Zolika1351
  • Zolika1351

    Ladies, hide your titties!

  • Members
  • Joined: 16 Jun 2014
  • Hungary

#1

Posted 15 September 2017 - 08:15 PM Edited by Zolika1351, 15 September 2017 - 08:16 PM.

					if(DoesScriptExist("load_ig_roman"))
					{
						LogInfo("DoesScriptExist passed");
						RequestScript("load_ig_roman");
						LogInfo("RequestScript passed");
						while(!HasScriptLoaded("load_ig_roman"))
						{
							Wait(0);
							LogInfo("Waiting for load");
						}
						LogInfo("Loaded, starting");
						StartNewScript("load_ig_roman", 1024);
						LogInfo("Started script");
						MarkScriptAsNoLongerNeeded("load_ig_roman");
						LogInfo("Marked as no longer needed");
						Wait(250);
					}

Running this code crashes the game. load_ig_roman.sco exists, so I have no idea why this happens. Adding the LogInfos made me see that it crashes after  "Loaded, starting" and doesn't log "Started script" so StartNewScript is the problem. Any ideas, anyone who still checks this section?





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users