Hi, my name is Death_Spirit and I'm in helping my leader on the server. My main question is if is possible to set many sqgamemodes in my server.cfg? If that's not the problem, how do people set the scripts in server.cfg? Please do answer and solve my problem. Your my only hope...
Sincerly,
Death_Spirit
TDZ's Manager
why you want to load many sqgamemods for 1 server and its not possible dont be so noobish
Then how to setup scripts?
sqgamemode some_script.nut
I'm a bit confused by your question though :-\
How do I insert scripts to the server?
Quote from: Death_Spirit on Aug 31, 2016, 01:50 AMHow do I insert scripts to the server?
Still confused :-\
Add scripts to the server?
Quote from: Death_Spirit on Aug 31, 2016, 01:56 AMAdd scripts to the server?
I just told you above. You use that in server.cfg
But are you sure that you're up for this kind of thing? I mean...
To be honest, I don't know either since I never messed with scripts too much and I have just one .nut file (the default one by Seby). I guess you can try adding "sqgamemode script1.nut script2.nut" and see if it works, else try adding several "sqgamemode" lines for every script and see which one of those two methods work. Anyway like I said I never came to have more than one script yet so I'm not sure, try what I said and see if it works, or just wait until someone else who knows will reply.
You call the dofile() function from the main script.
dofile("script1.nut", true);
dofile("script2.nut", true);
dofile("script3.nut", true);
The answer is, you cant set more than 1sqgamemode.
but you can use dofile as slc said
Where do I insert that function in my main.nut?
function onScriptLoad() {
dofile("some_script.nut",true)
}
What about other files such as database, folders, etc.?
Quote from: Death_Spirit on Aug 31, 2016, 05:01 AMWhere do I insert that function in my main.nut?
Anywhere you want! At the top of the file, at the button, inside and outside functions. Doesn't matter. It'll matter in a way that doesn't matter to you. That's what I mean.
Quote from: Death_Spirit on Aug 31, 2016, 05:51 AMWhat about other files such as database, folders, etc.?
You didn't really just asked that question?
Well what about those files? Store them into my script folder and add those to doFile?
Quote from: Death_Spirit on Aug 31, 2016, 06:53 AMWell what about those files? Store them into my script folder and add those to doFile?
You shouldn't script at all!
Ask your friend on "how do I load a db" and not us.
And you can't load a database file using dofile.
first time
@KAKAN become angry on newbie and not helping :P. you can load database by Conectsql or see others scripts to learn
Quote from: Hercules on Aug 31, 2016, 11:18 AMfirst time @KAKAN become angry on newbie and not helping :P. you can load database by Conectsql or see others scripts to learn
I was not angry, if I would've said him to use ConnectSQL, then his next error would be: The index 'ConnectSQL' doesn't exists.
He's new, he must read the wiki, check the forums in order to see/use the correct function and their uses.
And
@Death_Spirit you can download this (http://forum.vc-mp.org/?topic=33.0) server and script directly.
Where do I get ConnectSQL?
Quote from: Death_Spirit on Aug 31, 2016, 09:19 PMWhere do I get ConnectSQL?
by loading the SQLite plugin. How else?
Quote from: KAKAN on Aug 31, 2016, 12:31 PMQuote from: Hercules on Aug 31, 2016, 11:18 AMfirst time @KAKAN become angry on newbie and not helping :P. you can load database by Conectsql or see others scripts to learn
I was not angry, if I would've said him to use ConnectSQL, then his next error would be: The index 'ConnectSQL' doesn't exists.
He's new, he must read the wiki, check the forums in order to see/use the correct function and their uses.
And @Death_Spirit you can download this (http://forum.vc-mp.org/?topic=33.0) server and script directly.
You were right -_-