# Need some simple help

**URL:** <https://forum.kirupa.com/t/need-some-simple-help/250484>\
**Category:** Uncategorized\
**Created:** [January 29, 2008, 11:25pm UTC](https://forum.kirupa.com/t/need-some-simple-help/250484 "2008-01-29T23:25:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vexious](https://avatars.discourse-cdn.com/v4/letter/v/db5fbb/32.png) [@vexious](https://forum.kirupa.com/u/vexious)\
**Post date:** [January 29, 2008, 11:25pm UTC](https://forum.kirupa.com/t/need-some-simple-help/250484/1 "2008-01-29T23:25:24Z")

</div>

Ok. So here what i need, we current set the mode of our game via a var with php.

The score system is in its own thingy not sure what it called.

So in the root main scene i put:

```auto
if (modeid=="0"){mode = 0 }
if (modeid=="1"){mode = 1 }
if (modeid=="2"){mode = 2 }

```

Then in the highscore area i put:

```auto
function New() {
      if (_root.mode = 0) {
    getURL("http://domain.com/scorepost.php?score="+_root.Score + "&level="+_root.level +, "_top", "POST");
       }
      if (_root.mode = 1) {
    getURL("http://domain.com/scorepost1.php?score="+_root.Score + "&level="+_root.level +, "_top", "POST");
       }
      if (_root.mode = 2) {
    getURL("http://domain.com/scorepost2.php?score="+_root.Score + "&level="+_root.level +, "_top", "POST");
       }
       Show();
       gotoAndStop("Display");

   }

```

However for some reason no matter what is always uses mode 2? Anyone see the problem?
