Author Topic: Problem with loading scripts  (Read 834 times)

0 Members and 1 Guest are viewing this topic.

Offline Jo0st

  • Major(1)
  • Posts: 3
Problem with loading scripts
« on: March 18, 2010, 03:55:56 pm »
Checked How to install? Yes.
Tried all ways to install them? Yes.
Tried asking uncle Google? Yes.

And still nothing. I can't get downloaded scripts working on my server. I have added them by FTP in scripts folder, i have restarted server and.. nothing. I also tried adding them into default and changing that includes.txt. Still not working. Can someone make tutorial STEP-BY-STEP how to make things right?

Offline croat1gamer

  • Veteran
  • *****
  • Posts: 1327
  • OMG CHANGING AVATAR!!! ^ω^
Re: Problem with loading scripts
« Reply #1 on: March 18, 2010, 04:09:30 pm »
Get the scripts.
Make a new folder in the Scripts folder (name it like the script or sth.)
Place in that folder the .pas file and make a Includes.txt file with the *name of the .pas file*.pas

Should work.
Last year, I dreamt I was pissing at a restroom, but I missed the urinal and my penis exploded.

Offline Jo0st

  • Major(1)
  • Posts: 3
Re: Problem with loading scripts
« Reply #2 on: March 18, 2010, 04:11:21 pm »
Ok - for example:

soldat/scripts/new folder

and in that new folder put ALL scripts i wanna have and one Includes.txt with names of ALL those scripts?

Offline Silnikos

  • Soldier
  • **
  • Posts: 129
Re: Problem with loading scripts
« Reply #3 on: March 18, 2010, 04:43:47 pm »
I think the problem is that you didn't turn on scripting in server.ini :P.

Each script should have separate folder in /scripts/ and own Includes.txt. So, if you add a script called Killing Sprees, you shoud have something like this:

soldatserver/scripts/KillingSprees/Includes.txt (containing "sprees.pas")
soldatserver/scripts/KillingSprees/sprees.pas

Another script in another folder:

soldatserver/scripts/superscript/Includes.txt (containing "core.pas" and "functions.pas" in second line)
soldatserver/scripts/superscript/core.pas
soldatserver/scripts/superscript/functions.pas
« Last Edit: March 18, 2010, 04:48:12 pm by Silnikos »

Offline Jo0st

  • Major(1)
  • Posts: 3
Re: Problem with loading scripts
« Reply #4 on: March 18, 2010, 05:48:06 pm »
Silnikos - you're awesome. I love You. Thanks for help :) all scripts works now :)