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
2 if statements(Solved)
Lukaboy8 Offline
Junior Member

Posts: 25
Threads: 10
Joined: Aug 2012
Reputation: 0
#1
2 if statements(Solved)

Hello everybody,

I'm trying to make a script like this:

PHP Code: (Select All)
if(GetSwingDoorLocked("Librarydoor") == false) & (HasItem("BeroomKey") == false

AddTimer("Libraryquest"0,0f"CheckLibraryKey"); 



Obviously the & isn't corrects but how should I do it different?

Luke
(This post was last modified: 08-06-2012, 12:26 PM by Lukaboy8.)
08-06-2012, 09:06 AM
Find
Adny Offline
Posting Freak

Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation: 173
#2
RE: 2 if statements

Try this:


if(GetSwingDoorLocked("Librarydoor") == false && HasItem("BeroomKey") == false)
{
AddTimer("Libraryquest", 0.0f, "CheckLibraryKey");
}

I rate it 3 memes.
08-06-2012, 09:31 AM
Find
Lukaboy8 Offline
Junior Member

Posts: 25
Threads: 10
Joined: Aug 2012
Reputation: 0
#3
RE: 2 if statements

It works now thanks!
(This post was last modified: 08-06-2012, 12:25 PM by Lukaboy8.)
08-06-2012, 10:12 AM
Find




Users browsing this thread: 1 Guest(s)