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?
P44RTHURN4X Offline
Junior Member

Posts: 35
Threads: 16
Joined: Apr 2012
Reputation: 0
#6
RE: unexpected end of file, what's the problem?

(04-20-2012, 06:04 PM)Cranky Old Man Wrote:
(04-20-2012, 05:58 PM)SilentStriker Wrote: 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
  }
}
Well, there's always "case" if you are looking to optimize.
No, this also don't works anyway... So I have to make maps completely without Timer-Scripting Sad


04-21-2012, 05:59 PM
Find


Messages In This Thread
RE: unexpected end of file, what's the problem? - by P44RTHURN4X - 04-21-2012, 05:59 PM



Users browsing this thread: 1 Guest(s)