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
Script Help Two if statements
ooadrianoo Offline
Member

Posts: 82
Threads: 29
Joined: Apr 2012
Reputation: 0
#1
Two if statements

Hello community!

I have a problem with my script.
When I load the map, it will screen: expected expression value.
This is the file, where the error is:

PHP Code: (Select All)
if (GetGlobalVarInt("Lantern") == 1) && GetGlobalVarInt("Note") == 1
10-02-2012, 06:51 PM
Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#2
RE: Two if statements

(10-02-2012, 06:51 PM)ooadrianoo Wrote:
PHP Code: (Select All)
if (GetGlobalVarInt("Lantern") == && GetGlobalVarInt("Note") == 1
Took a parenthesis out.
10-02-2012, 06:54 PM
Find
ooadrianoo Offline
Member

Posts: 82
Threads: 29
Joined: Apr 2012
Reputation: 0
#3
RE: Two if statements

(10-02-2012, 06:54 PM)Statyk Wrote:
(10-02-2012, 06:51 PM)ooadrianoo Wrote:
PHP Code: (Select All)
if (GetGlobalVarInt("Lantern") == && GetGlobalVarInt("Note") == 1
Took a parenthesis out.

wich?
10-02-2012, 07:00 PM
Find
Kreekakon Offline
Pick a god and pray!

Posts: 3,063
Threads: 70
Joined: Mar 2012
Reputation: 124
#4
RE: Two if statements

The one at the end of the first 1

[Image: Tv0YgQb.gif]
Image by BandyGrass
10-02-2012, 07:02 PM
Find




Users browsing this thread: 1 Guest(s)