English How do you use 2 LUA scripts together?

3 replies
Goto Page
To the start Previous 1 Next To the start
Up
s0ulsh0ck3r101
User
Offline Off
Hi. I want to make a call of duty mode server. And I want to use "cod_gamemode.lua" with "tdm-score.lua" but im not sure how to. I tried copy and pasting the tdm score to cod gamemode but some things were missing when I tested it.
IMG:http://steamsignature.com/status/english/76561198095169857.png
IMG:http://steamsignature.com/AddFriend.png
19.01.18 11:32:05 pm
Up
script favor
User
Offline Off
Hello,@user s0ulsh0ck3r101:

You can use the dofile:

Code:
1
2
First : dofile('sys/lua/yourlua.lua')
Second : dofile('sys/lua/yourlua.lua')


And it should work.
Visit my website : https://bounty-mafia.tk , Discord : https://discord.gg/ntNd6TX, IMG:http://i60.tinypic.com/5kixc8.gif
20.01.18 10:15:32 am
Up
apex2d
User
Offline Off
Try opening your
Code:
1
server.lua
from your sys/Lua Folder

and try adding a new line for your Second Script.
it should look like this

Code:
1
2
dofile("sys/lua/Script1.lua")
dofile("sys/lua/Script2.lua")
Eat Sleep Conquer Repeat. www.Radeon2D.forumid.net
21.01.18 05:11:21 am
Up
s0ulsh0ck3r101
User
Offline Off
Thank you very much!
IMG:http://steamsignature.com/status/english/76561198095169857.png
IMG:http://steamsignature.com/AddFriend.png
To the start Previous 1 Next To the start