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 Script Help
Adrianis Offline
Senior Member

Posts: 620
Threads: 6
Joined: Feb 2012
Reputation: 27
#11
RE: check if active/ string to int

(03-25-2013, 10:00 AM)Knusper. Wrote: ok, i found the problem, i didnt wrote void MyFunc(string &in asTimer)

I can't see anywhere in your script that you are using a timer, are you sure that that is the problem?

(03-25-2013, 10:00 AM)Knusper. Wrote: Now only At
void FadeOut1(string &in asParent, string &in asChild, int alState)
{
    IsInArea = false;
    string areanumber2 = StringSub(asChild, 11, 2);
    int i1, i2;
    
    i2 = areanumber2[0] *10 + areanumber2[1];       
    i1 = LastArea[0] *10 + LastArea[1];                
    
    if(i1 == i2 - 10)
    {
        AddDebugMessage("fade", false);
        LastArea = areanumber2;
    }
    
}

He sometimes shows the message and sometimes he does not.

Is there any particular reason you need to store the locations like areanumber and LastArea as strings, and not int's?

Did you write all of this script yourself, or has it been copied & pasted from other places?

03-25-2013, 01:09 PM
Find


Messages In This Thread
Script Help - by Knusper. - 03-23-2013, 10:02 PM
RE: check if active/ string to int - by Adrianis - 03-24-2013, 01:08 AM
RE: check if active/ string to int - by Rapture - 03-24-2013, 02:18 AM
RE: check if active/ string to int - by Knusper. - 03-24-2013, 01:15 PM
RE: check if active/ string to int - by Adrianis - 03-24-2013, 03:14 PM
RE: check if active/ string to int - by Knusper. - 03-24-2013, 08:51 PM
RE: check if active/ string to int - by Adrianis - 03-24-2013, 10:48 PM
RE: check if active/ string to int - by Knusper. - 03-24-2013, 10:57 PM
RE: check if active/ string to int - by Adrianis - 03-24-2013, 11:03 PM
RE: check if active/ string to int - by Knusper. - 03-25-2013, 10:00 AM
RE: check if active/ string to int - by Adrianis - 03-25-2013, 01:09 PM
RE: check if active/ string to int - by Knusper. - 03-25-2013, 01:29 PM
RE: check if active/ string to int - by Knusper. - 03-25-2013, 05:56 PM
RE: check if active/ string to int - by Adrianis - 03-25-2013, 06:00 PM
RE: check if active/ string to int - by Knusper. - 03-26-2013, 10:44 AM
RE: check if active/ string to int - by Adrianis - 03-26-2013, 11:55 AM
RE: check if active/ string to int - by Knusper. - 03-26-2013, 12:10 PM
RE: check if active/ string to int - by Adrianis - 03-26-2013, 12:52 PM
RE: check if active/ string to int - by Knusper. - 03-26-2013, 01:11 PM
RE: check if active/ string to int - by Adrianis - 03-26-2013, 01:14 PM
RE: check if active/ string to int - by Knusper. - 03-26-2013, 01:19 PM
RE: check if active/ string to int - by Adrianis - 03-26-2013, 01:37 PM
RE: check if active/ string to int - by Knusper. - 03-26-2013, 01:42 PM
RE: check if active/ string to int - by Adrianis - 03-26-2013, 01:54 PM
RE: check if active/ string to int - by Knusper. - 03-26-2013, 02:03 PM
RE: check if active/ string to int - by NaxEla - 03-26-2013, 05:44 PM
RE: check if active/ string to int - by Adrianis - 03-26-2013, 06:11 PM
RE: check if active/ string to int - by Knusper. - 03-26-2013, 06:51 PM
RE: check if active/ string to int - by Adrianis - 03-26-2013, 07:48 PM
RE: check if active/ string to int - by Knusper. - 03-26-2013, 08:44 PM
RE: Script Help - by Adrianis - 03-27-2013, 02:03 PM
RE: Script Help - by Knusper. - 03-27-2013, 02:21 PM
RE: Script Help - by No Author - 03-27-2013, 02:24 PM
RE: Script Help - by PutraenusAlivius - 03-27-2013, 03:04 PM
RE: Script Help - by Knusper. - 03-28-2013, 03:01 PM
RE: Script Help - by PutraenusAlivius - 03-28-2013, 03:07 PM
RE: Script Help - by Knusper. - 03-28-2013, 03:15 PM
RE: Script Help - by PutraenusAlivius - 03-28-2013, 03:21 PM
RE: Script Help - by Knusper. - 03-28-2013, 04:56 PM



Users browsing this thread: 1 Guest(s)