Frictional Games Forum (read-only)

Full Version: 2 if statements(Solved)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello everybody,

I'm trying to make a script like this:

PHP Code:
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
Try this:


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