Pavlos Posted November 26, 2005 Share Posted November 26, 2005 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 More sharing options...
stoffe Posted November 26, 2005 Share Posted November 26, 2005 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 More sharing options...
Pavlos Posted November 26, 2005 Author Share Posted November 26, 2005 Ahh, thanks alot! Stupid syntax... Edit: Yes you were right (Obviously) about the parentheses, I kept my own script but made that change. Thanks for your help! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.