The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What's wrong with my script?
willochill Offline
Member

Posts: 73
Threads: 27
Joined: Apr 2011
Reputation: 0
#1
What's wrong with my script?

I'm having a bit of trouble here- when I try to run my map it crashes and says:
main (77, 1) : ERR :Unexpected end of file
This seems strange to me because I looked over my entire script and saw nothing left unended, no open brackets without a close, nothing.
Here's the script:
void OnStart(){FadeOut(0);AddTimer("TimerFirstLook", 3, "FirstLook);SetPlayerActive(false);SetPlayerCrouching(true);FadePlayerRollTo(-90, 1000, 1000);}
void FirstLook (string &in asTimer){FadeIn(3);AddTimer("TimerFadeOut01", 6, "FadeOut01");AddTimer("TimerSecondLook", 12, "SecondLook");}
void FadeOut01(string &in asTimer){FadeOut(3);}
void SecondLook(string &in asTimer){FadeIn(3);AddTimer("TimerLook_01", 3, "Look01");AddTimer("TimerLook_02", 4.5, "Look02");AddTimer("TimerLook_03", 5.5, "Look03");AddTimer("TimerLookBack", 7.5, "LookBack");}
void Look01(string &in asTimer){StartPlayerLookAt("AreaLook01", 1, 1, "");}
void Look02(string &in asTimer){StopPlayerLookAt();StartPlayerLookAt("AreaLook02", 1, 1, "");}
void Look03(string &in asTimer){StopPlayerLookAt();StartPlayerLookAt("AreaLook03", 1, 1, "");}
void LookBack(string &in asTimer){StopPlayerLookAt();StartPlayerLookAt("AreaLookBack", 1, 1, "");FadeOut(3);AddTimer("TimerGetUp", 5, "GetUp")}
void GetUp(string &in asTimer){StopPlayerLookAt();FadeIn(3);AddTimer("TimerTurnHead," 3, "TurnHead",);AddTimer("TimerActivatePlayer", 6, "ActivatePlayer");}
void TurnHead(string &in asTimer){FadePlayerRollTo(90, 80, 90);}
void ActivatePlayer(string &in asTimer){SetPlayerActive(true);}
05-06-2012, 09:39 PM
Find


Messages In This Thread
What's wrong with my script? - by willochill - 05-06-2012, 09:39 PM
RE: What's wrong with my script? - by Xanthos - 05-06-2012, 09:57 PM
RE: What's wrong with my script? - by willochill - 05-06-2012, 09:59 PM
RE: What's wrong with my script? - by willochill - 05-06-2012, 10:13 PM
RE: What's wrong with my script? - by Xanthos - 05-06-2012, 10:33 PM



Users browsing this thread: 3 Guest(s)