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
unexpected end of file, what's the problem?
SilentStriker Offline
Posting Freak

Posts: 950
Threads: 26
Joined: Jul 2011
Reputation: 43
#3
RE: unexpected end of file, what's the problem?

When making if timers I would suggest you make it like this since it's easier:

here's an example
AddTimer("1", 2, "StartTimers");
AddTimer("2", 4, "StartTimers");
AddTimer("3", 6, "StartTimers");

void StartTimers(string &in asTimer)
{
if(asTimer == "1")
  {
    //Do stuff
  }
else if(asTimer == "2")
  {
   //Do Other stuff
  }
else if(asTimer == "3")
  {
  // Do even more stuff
  }
}

04-20-2012, 05:58 PM
Find


Messages In This Thread
RE: unexpected end of file, what's the problem? - by SilentStriker - 04-20-2012, 05:58 PM



Users browsing this thread: 1 Guest(s)