Tockra Posted July 6, 2010 Posted July 6, 2010 Hello guys, i want create a script, which kicks everybody, who isn't in a special file, which is saved on the server. The problem is, how can i get the string from https://wiki.multitheftauto.com/wiki/FileRead in a table?
50p Posted July 6, 2010 Posted July 6, 2010 Haven't you heard of that split function? I'd suggest you use xml files or SQL.
Tockra Posted July 6, 2010 Author Posted July 6, 2010 Okay this is the script : http://pastebin.com/EC4ZgdFg And this is in the Chatbox : Connect... 1 Tockra Tim Popel And this is the txt: http://www.file-upload.net/download-265 ... t.txt.html PS: Why should i use a xml or sql ? Where is it different?
50p Posted July 6, 2010 Posted July 6, 2010 IMO plain files are slower. If your file will get bigger, split function will be slower but if your server is just for your friends, you are fine with file functions.
FUNExtreme Posted July 6, 2010 Posted July 6, 2010 I'd also use SQlite like 50p said, you might want to keep it for friends only for now but maybe you will change thoughts one time and enlarge the file making your resource slow. Just go for SQlite i'd say!!!!
Tockra Posted July 6, 2010 Author Posted July 6, 2010 Okay i can use the sql function, but where and how do mta save the sql datas?
Lordy Posted July 6, 2010 Posted July 6, 2010 iirc in registry.db in server/mods/deathmatch directory
dzek (varez) Posted July 6, 2010 Posted July 6, 2010 yes, with sqlite browser (there was such resource, to manage it ingame, but theres also a windows applications for doing it)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now