Compiling Error -1 reply

Please wait...

Revan81790

I don't spend enough time here

50 XP

20th June 2008

0 Uploads

22 Posts

0 Threads

#1 10 years ago

I recieve the following message... syntaxerror.jpg ...whenever I try to compile the following script: voidmain() { RemoveAvailableNPC(3); AddAvailableNPCByTemplate(3, "p_derin"); DelayCommand(1.5, ShowPartySelectionGUI()); } I am using this for TSL if it helps... What is the problem and how do I fix it?




Kast.2da

Modder

50 XP

11th April 2007

0 Uploads

206 Posts

0 Threads

#2 10 years ago

The problem is that there is supposed to a space between the word void & main.

Here is the corrected script: void main() { RemoveAvailableNPC(3); AddAvailableNPCByTemplate(3, "p_derin"); DelayCommand(1.5, ShowPartySelectionGUI()); }




Revan81790

I don't spend enough time here

50 XP

20th June 2008

0 Uploads

22 Posts

0 Threads

#3 10 years ago
Ferc Kast;4407452The problem is that there is supposed to a space between the word void & main. Here is the corrected script: void main() { RemoveAvailableNPC(3); AddAvailableNPCByTemplate(3, "p_derin"); DelayCommand(1.5, ShowPartySelectionGUI()); }

There is, I just forgot to put one in the post above.




Kast.2da

Modder

50 XP

11th April 2007

0 Uploads

206 Posts

0 Threads

#4 10 years ago

Well, the script should compile for you; I tried compiling what i posted & it compiled perfectly. There shouldn't be any probelms w/ it.