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
Script Help for(int) [SOLVED]
Lizard Offline
Member

Posts: 174
Threads: 23
Joined: Jul 2012
Reputation: 5
#1
for(int) [SOLVED]

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

PHP Code: (Select All)
void FuncLightsOut(string &in asParentstring &in asChildint alState)
{
    for(
int i=1;i<=13;i++)
    {
        if(
SetLightVisible("Lamp_"+i) == true)
        {        
            
SetLightVisible("Lamp_"+ifalse);
            
CreateParticleSystemAtEntity("ps_dust_whirl""ps_dust_whirl.ps""Lamp_"+ifalse);
            
PlaySoundAtEntity("laugh""00_laugh.ogg""Player"0false);
            
GiveSanityDamage(40true);
        }
    }


CURRENT PROJECT:
A Fathers Secret == Just started
(This post was last modified: 07-28-2014, 12:17 PM by Lizard.)
07-27-2014, 05:36 PM
Find


Messages In This Thread
for(int) [SOLVED] - by Lizard - 07-27-2014, 05:36 PM
RE: for(int) - by PutraenusAlivius - 07-27-2014, 05:50 PM
RE: for(int) - by Rapture - 07-27-2014, 05:51 PM
RE: for(int) - by Lizard - 07-27-2014, 06:13 PM
RE: for(int) - by Mudbill - 07-27-2014, 07:32 PM
RE: for(int) - by Lizard - 07-27-2014, 07:44 PM
RE: for(int) - by Mudbill - 07-27-2014, 11:32 PM
RE: for(int) - by Lizard - 07-28-2014, 11:15 AM
RE: for(int) - by Romulator - 07-28-2014, 11:51 AM
RE: for(int) - by Lizard - 07-28-2014, 12:02 PM
RE: for(int) [SOLVED] - by Mudbill - 07-28-2014, 05:16 PM
RE: for(int) [SOLVED] - by Lizard - 07-28-2014, 08:33 PM
RE: for(int) [SOLVED] - by Mudbill - 07-29-2014, 12:41 AM
RE: for(int) [SOLVED] - by Lizard - 07-29-2014, 07:31 AM



Users browsing this thread: 1 Guest(s)