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
Double if(GetEntitiesCollide - Problem [SOLVED]
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#1
Double if(GetEntitiesCollide - Problem [SOLVED]

Hello smart people ^^

I have a problem with my if-statement.
The error is: Expected exrpession value.

My script is:


void OnCollide_3(string &in asParent, string &in asChild, int alState)
{
if(GetEntitiesCollide("stone_med01_brown_1", "ScriptArea_2") == true) && if(GetEntitiesCollide("stone_med01_brown_2", "ScriptArea_2") == true) <-- Points to this line
{
FadeOut(0);
PlaySoundAtEntity("", "explosion_rock_large", "Player", 0.5f, false);
}
}

But what is wrong.. I can't seem to figure it out myself..

Trying is the first step to success.
(This post was last modified: 07-13-2012, 07:23 PM by FlawlessHappiness.)
07-13-2012, 04:32 PM
Find


Messages In This Thread
Double if(GetEntitiesCollide - Problem [SOLVED] - by FlawlessHappiness - 07-13-2012, 04:32 PM



Users browsing this thread: 1 Guest(s)