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
switch statements
Khyrpa Offline
Senior Member

Posts: 638
Threads: 10
Joined: Apr 2011
Reputation: 24
#4
RE: switch statements

(07-20-2011, 08:31 PM)Kyle Wrote: Thanks for radding off on my wiki page! Tongue

I'm not sure what radding means, but I guess its something negative. I just happen to like the event speed thing more, x == stuff seems scary to me!

OnTopic:

void Timer(string &in asTimer)
{SetLocalVarInt("whatcase", asTimer);
switch(GetLocalVarInt("whatcase"))
{case 1:
// Do Stuff
break;
case 2:
// Do More Stuff
break;
case 3:
// Do Other Stuff
break;
case 4:
// Do Funky Stuff
break;
}
}

should do it
(This post was last modified: 07-20-2011, 08:41 PM by Khyrpa.)
07-20-2011, 08:38 PM
Find


Messages In This Thread
switch statements - by DRedshot - 07-20-2011, 08:00 PM
RE: switch statements - by Khyrpa - 07-20-2011, 08:24 PM
RE: switch statements - by Kyle - 07-20-2011, 08:31 PM
RE: switch statements - by Khyrpa - 07-20-2011, 08:38 PM
RE: switch statements - by DRedshot - 07-20-2011, 08:42 PM
RE: switch statements - by palistov - 07-20-2011, 08:46 PM
RE: switch statements - by DRedshot - 07-20-2011, 08:49 PM
RE: switch statements - by palistov - 07-22-2011, 10:34 AM



Users browsing this thread: 1 Guest(s)