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 and cases
Kreekakon Offline
Pick a god and pray!

Posts: 3,063
Threads: 70
Joined: Mar 2012
Reputation: 124
#6
RE: switch and cases

Put...

if(GetLocalVarInt("Var1") == 6)

    {

SetLocalVarInt("Var1", 0);

    }

...at the very bottom of the function EventTimer.

Right now you relocated it to OnStart which means it will only try to check at the very beginning which is completely pointless.

[Image: Tv0YgQb.gif]
Image by BandyGrass
09-07-2013, 03:36 PM
Find


Messages In This Thread
switch and cases - by Lizard - 09-07-2013, 10:09 AM
RE: switch and cases - by Apjjm - 09-07-2013, 02:42 PM
RE: switch and cases - by Lizard - 09-07-2013, 03:01 PM
RE: switch and cases - by Kreekakon - 09-07-2013, 03:14 PM
RE: switch and cases - by Lizard - 09-07-2013, 03:31 PM
RE: switch and cases - by Kreekakon - 09-07-2013, 03:36 PM
RE: switch and cases - by Lizard - 09-07-2013, 03:44 PM



Users browsing this thread: 1 Guest(s)