Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualFDsagizi

Posted 31 January 2013 - 10:25 PM

Hi smile.png

 

Error:

 

 The script ended with an exception.

    funcf: void startGame(string&inout)

    sect: Start.as

    line: 32

    desc: Null pointer access

 

Code:


class A
{
    int GetCount(){ return 10; }
}


void startGame( string &param )
{


    A @a = null;    // line 23
    
    for( int i=0; i < a.GetCount(); i++ ) // line 25
    {                        
        
        
        
        
        
        int some_val;    // line 32
    }
}
 

 


#2FDsagizi

Posted 31 January 2013 - 10:25 PM

Hi smile.png

 

Error:

 

 The script ended with an exception.

    funcf: void startGame(string&inout)

    sect: Start.as

    line: 32

    desc: Null pointer access

 

Code:

 

 

 


class A
{
    int GetCount(){ return 10; }
}
 
void startGame( string &param )
{
 
    A @a = null;    // line 23
    
    for( int i=0; i < a.GetCount(); i++ ) // line 25
    {                        
        
        
        
        
        
        int some_val;    // line 32
    }
}

#1FDsagizi

Posted 31 January 2013 - 10:23 PM

Hi smile.png

 

Error:

 

 The script ended with an exception.

    funcf: void startGame(string&inout)

    sect: Start.as

    line: 32

    desc: Null pointer access

 

Code:

 

 

 

class A
{
    int GetCount(){ return 10; }
}


void startGame( string &param )
{


    A @a = null;    // line 23
    
    for( int i=0; i < a.GetCount(); i++ ) // line 25
    {                        
        int b = 0;
        int c = 10;
        int v = 11;
        int g = 12;    // line 30
        
        print( "" + b ); // line 32
    }
}
 

 


PARTNERS