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 with empty statement
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#1
If with empty statement

i made an if statement, which should be all right

void OnStart()
{

SetEntityConnectionStateChangeCallback("lever_simple01_1", "PipeStart1_1");
SetEntityConnectionStateChangeCallback("lever_simple01_2", "PipeStart1_2");
}


void PipeStart1_1(string &in asEntity, int alState)
{
if(alState == 1)
{
AddLocalVarInt("PipeStart1", 1);

if(GetLocalVarInt("PipeStart1") == 2);
{
AddPlayerSanity(5.0f);
}
}
}

void PipeStart1_2(string &in asEntity, int alState)
{
if(alState == 1)
{
AddLocalVarInt("PipeStart1", 1);

if(GetLocalVarInt("PipeStart1") == 2);
{
AddPlayerSanity(5.0f);
}
}
}

But i get this error which i doesn't understand...

"If with empty statement"


What does this mean?

Trying is the first step to success.
06-09-2012, 09:50 PM
Find


Messages In This Thread
If with empty statement - by FlawlessHappiness - 06-09-2012, 09:50 PM
RE: If with empty statement - by Apjjm - 06-09-2012, 09:57 PM



Users browsing this thread: 4 Guest(s)