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.
|