Blockland Forums > Modification Help
Invalid Script Extension Error
<< < (3/4) > >>
Placid:
are you saving the script as a .cs?
are you using the right extension?

please post the command you are using to execute the script.
Aide33:
I am saving as a .cs
and this is what I use:

--- Quote ---exec("Addons/Script_Me/server.cs");
--- End quote ---
Bauklotz:

--- Code: ---exec("Add-Ons/Script_Me/server.cs");

--- End code ---
Truce:

--- Quote from: Aide33 on March 10, 2011, 10:39:32 AM ---I am saving as a .cs
and this is what I use:

--- End quote ---

While the path is wrong like Bauklotz pointed out, you do not seem to have the quotations around it in your actual script. Explanation: When it wants to evaluate exec(Add-Ons/Script_Me/server.cs), it essentially treats the slashes as "divide". 0/0/0 results in -1.#IND, hence the error.
Iban:
Clever.
Navigation
Message Index
Next page
Previous page

Go to full version