i am trying to compile this script
 TakeGoldFromCreature(n100, GetFirstPC());
 but it keeps saying 'syntax error' what am i doing wrong?
 (ps. got script from 
http://www.lucasforums.com/showthread.php?t=143412) )
  
 
  
  
    Change...
 TakeGoldFromCreature(n100, GetFirstPC());
 
 To...
 TakeGoldFromCreature(100, GetFirstPC());
 You shouldn't need the 'n'. ;)
  
 
  
  
    the letter prefixes are for when you feel the need to be, as linus torvalds said "brain damaged" and use hungarian notation (
http://www.learncpp.com/cpp-tutorial/29-hungarian-notation/) for your variable names. a number like 100 is a literal though, so you can't prefix it like that.
  
 
  
  
    Its still not compiling right.
 i get told that syntax error at 'TakeGoldFromCreature'
  
 
  
  
    Its still not compiling right.
 i get told that syntax error at 'TakeGoldFromCreature'
 
 Are you adding void main? The full thing should be
 
 
 void main() {
 TakeGoldFromCreature(100, GetFirstPC());
 }
  
 
  
  
    Thanks trex. That did the trick.