The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
If Statement
shiznit304 Offline
Junior Member

Posts: 4
Threads: 1
Joined: Oct 2010
Reputation: 0
#1
If Statement

How do I make an if statement to check if the door is not locked, then don't display message?
this is what I got.
if (GetSwingDoorLocked("door1") == true)
    {
        void AddMessage1(string &in entity)
        {
            AddDebugMessage("fgsfds",false);
            SetMessage("Messages", "ExitDoorMessage", 0);
        }    
}

But when i try to load my level, it says:
Unexpected token 'if'
10-10-2010, 09:13 PM
Find


Messages In This Thread
If Statement - by shiznit304 - 10-10-2010, 09:13 PM
RE: If Statement - by Pandemoneus - 10-10-2010, 09:21 PM
RE: If Statement - by shiznit304 - 10-10-2010, 10:00 PM



Users browsing this thread: 1 Guest(s)