Blockland Forums > Modification Help
Invalid Script Extension Error
Aide33:
I am quite new at scripting and I understand almost everything but I'm having a hard time
I saw the thread about making vehicles shoot and i tried it out.
--- Quote from: soba on March 06, 2011, 03:36:16 PM ---For advanced users - look at the tank turret code
For beginner users - http://forum.blockland.us/index.php?topic=51249.0
--- End quote ---
I tried the beginner one but it didn't work.
When i tried to execute Support_ShootOnClick it said:
--- Quote ---exec: invalid script file name -1.#IND - extension must be .cs or .mis or .gui
--- End quote ---
It does this for all my scripts and i don't know why!
Bauklotz:
Are you executing files like this?
exec("path/to/file/support_shootOnClick");
You must specify the .cs extension.
exec("path/to/file/support_shootOnClick.cs");
Aide33:
--- Quote from: Bauklotz on March 09, 2011, 12:30:09 PM ---Are you executing files like this?
exec("path/to/file/support_shootOnClick");
You must specify the .cs extension.
exec("path/to/file/support_shootOnClick.cs");
--- End quote ---
No no I put the .cs
Iban:
It would help considerably if we actually saw your code.
Aide33:
--- Quote from: Iban on March 09, 2011, 02:36:59 PM ---It would help considerably if we actually saw your code.
--- End quote ---
Wait