There is no errors in this script, but it's not working InGame.
#5

An example:
pawn Код:
main( )
{
    new
        a = 20,
        b = 21,
        c
    ;

    if( a > b ) c = a + b;
    if( a < b ) c = a - b;
}
Let's say that something is wrong with that code. You can use print/printf to check if it is called and which are the results.
pawn Код:
// An example of it
main( )
{
    new
        a = 20,
        b = 21,
        c
    ;

    printf( "a = %d\nb = %d", a, b );
    if( a > b )
    {
        printf( "if( %d > %d ) is true!", a, b );
        c = a + b;
        printf( "c is now %d", c );
    }
    if( a < b )
    {
        printf( "if( %d < %d ) is true!", a, b );
        c = a + b;
        printf( "c is now %d", c );
    }
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)