lfnetwork.com mark read register faq members calendar

Thread: What is wrong with this script?
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 11-26-2005, 03:56 AM   #1
Pavlos
Scruffy Englishman
 
Pavlos's Avatar
 
Join Date: Sep 2005
Location: The real world/ivory towers
Posts: 1,974
Current Game: Viking Warrior Poets
What is wrong with this script?

This is for TSL:

Code:
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!
Pavlos is offline   you may: quote & reply,
Old 11-26-2005, 07:54 AM   #2
stoffe
Network Caretaker
 
stoffe's Avatar
 
Status: Administrator
Join Date: Apr 2002
Posts: 5,833
Helpful! 10 year veteran! Notable contributor 
Quote:
Originally Posted by Pavlos
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:
Code:
int StartingConditional() {
    return (GetSpellAcquired(FORM_SABER_I_SHII_CHO, GetPartyLeader()) && (GetModuleName() == "003EBO"));
}

stoffe is offline   you may: quote & reply,
Old 11-26-2005, 08:37 AM   #3
Pavlos
Scruffy Englishman
 
Pavlos's Avatar
 
Join Date: Sep 2005
Location: The real world/ivory towers
Posts: 1,974
Current Game: Viking Warrior Poets
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!
Pavlos is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > Knights of the Old Republic > Editing / Modding > Holowan Laboratories > What is wrong with this script?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:56 AM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.