Jump to content

Home

What is wrong with this script?


Pavlos

Recommended Posts

This is for TSL:

 

int StartingConditional()
{
 if( GetSpellAcquired(FORM_SABER_I_SHII_CHO, GetPartyLeader()) && ( ( GetModuleName() == "003EBO") )
    {
     return TRUE;
    }
 return  FALSE;
}

 

Can somebody tell me what is wrong with it please? The compiler says that on line four there is a syntax error at "{" but I don't see what is wrong with it!

Link to comment
Share on other sites

This is for TSL:

 

(snip)

Can somebody tell me what is wrong with it please? The compiler says that on line four there is a syntax error at "{" but I don't see what is wrong with it!

 

You have one opening paranthesis too many directly following the &&. This should compile:

int StartingConditional() {
   return (GetSpellAcquired(FORM_SABER_I_SHII_CHO, GetPartyLeader()) && (GetModuleName() == "003EBO"));
}

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...