07-27-2014, 05:36 PM
Hey guys.
Im having a bit of a problem, that hope you guys can help with.
I keep getting these errors:
No matching signatures to SetLightVisible(string@&)
No conversion from 'bool' to 'int' available
I have working alittle back and forth, but cant find a solution to the problem, so hope you guys can help me out
Im having a bit of a problem, that hope you guys can help with.
I keep getting these errors:
No matching signatures to SetLightVisible(string@&)
No conversion from 'bool' to 'int' available
I have working alittle back and forth, but cant find a solution to the problem, so hope you guys can help me out
PHP Code:
void FuncLightsOut(string &in asParent, string &in asChild, int alState)
{
for(int i=1;i<=13;i++)
{
if(SetLightVisible("Lamp_"+i) == true)
{
SetLightVisible("Lamp_"+i, false);
CreateParticleSystemAtEntity("ps_dust_whirl", "ps_dust_whirl.ps", "Lamp_"+i, false);
PlaySoundAtEntity("laugh", "00_laugh.ogg", "Player", 0, false);
GiveSanityDamage(40, true);
}
}
}