Canderis Posted October 20, 2008 Share Posted October 20, 2008 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 ) Link to comment Share on other sites More sharing options...
RedHawke Posted October 21, 2008 Share Posted October 21, 2008 Change... TakeGoldFromCreature(n100, GetFirstPC()); To... TakeGoldFromCreature(100, GetFirstPC()); You shouldn't need the 'n'. Link to comment Share on other sites More sharing options...
Det. Bart Lasiter Posted October 21, 2008 Share Posted October 21, 2008 the letter prefixes are for when you feel the need to be, as linus torvalds said "brain damaged" and use hungarian notation for your variable names. a number like 100 is a literal though, so you can't prefix it like that. Link to comment Share on other sites More sharing options...
Canderis Posted October 21, 2008 Author Share Posted October 21, 2008 Its still not compiling right. i get told that syntax error at 'TakeGoldFromCreature' Link to comment Share on other sites More sharing options...
Trex Posted October 21, 2008 Share Posted October 21, 2008 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()); } Link to comment Share on other sites More sharing options...
Canderis Posted October 21, 2008 Author Share Posted October 21, 2008 Thanks trex. That did the trick. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.