FireOctober

  • Newbie
  • Posts: 6
[BUG] client-side script dofile() not work
«  »
I put main.nut and test.nut in store\script follor and writed

Code: [Select]
function Script::ScriptLoad()
{
dofile("test.nut");
}

but test.nut didn't working in game.
so I think it is a BUG.

umar4911

  • Sr. Member
  • Creating own server!
  • Posts: 473
I am gamer, programmer and hacker. Try to find me!
xD

FireOctober

  • Newbie
  • Posts: 6

Bob

  • Hero Member
  • Posts: 777

Athanatos

  • Hero Member
  • Romania Cops N Robbers Lead Developer
  • Posts: 810

FireOctober

  • Newbie
  • Posts: 6
[BUG] Re: client-side script dofile() not work
« Reply #6,  »Last edited
Quote from Athanatos on February 9th, 07:36 PM
Quote from FireOctober on February 4th, 12:42 PM
I put main.nut and test.nut in store\script follor and writed
Dude, the correct folder is : store/scripts/
put main.nut in store\script\
put test.nut in store\scripts\
and write dofile("scripts/test.nut") or dofile("store/scripts/test.nut") not work.
server version is 04rel006

dracc

  • Jr. Member
  • Posts: 84

Sebastian

  • VC:MP Beta Tester
  • Something like this: hga hga hga
  • Posts: 946
[BUG] Re: client-side script dofile() not work
« Reply #8,  »
Don't know about you, guys, but I'm using include() function to load my scripts.
Also, name of my directory is also store/script/, with no s.