Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
"if" remove message [Solved :D]
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#5
RE: "if" remove message

The "return" is used to return out of it, going back to void LockedHint(string &in asEntity).

It is mostly used to make sure that "if" statements work when using multiple "if" statements.

For example:

void OnStart()
{
     SetEntityPlayerInteractCallback("prison_1", "LockedHint", false);
}
void LockedHint(string &in asEntity)
{
     if (GetSwingDoorLocked(asEntity) == true)
     {
          [whatever in here]
          return;
     }
     else if (GetSwingDoorLocked(asEntity) == false)
     {
          [whatever in here]
          return;
     }
}

05-30-2011, 04:53 PM
Find


Messages In This Thread
"if" remove message [Solved :D] - by DannieWest - 05-30-2011, 02:34 PM
RE: "if" remove message - by Apjjm - 05-30-2011, 02:56 PM
RE: "if" remove message - by Kyle - 05-30-2011, 02:57 PM
RE: "if" remove message - by DannieWest - 05-30-2011, 04:13 PM
RE: "if" remove message - by Apjjm - 05-30-2011, 05:19 PM
RE: "if" remove message - by Kyle - 05-30-2011, 04:53 PM
RE: "if" remove message - by DannieWest - 05-30-2011, 10:00 PM



Users browsing this thread: 1 Guest(s)