Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: DontKnowScripting:( on May 06, 2015, 06:32 PM

Title: BAN cmd ...
Post by: DontKnowScripting:( on May 06, 2015, 06:32 PM
http://forum.vc-mp.org/?topic=200.0


I used all the scripts exactly and created tables


(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Fs18.postimg.org%2F7fup88wbt%2FScreenshot_4.png&hash=ad4db5e05843a802afddf844d478c5771dee7cd8) (http://postimg.org/image/xbefrfy5h/full/)
free image uploader (http://postimage.org/)
Title: Re: BAN cmd ...
Post by: MatheuS on May 07, 2015, 02:54 AM
Put in OnScriptLoad

db <- ConnectSQL( "YourDBName.db" );
and OnScriptUnload

DisconnectSQL( db );
Title: Re: BAN cmd ...
Post by: DontKnowScripting:( on May 07, 2015, 03:01 AM
I just came to know I'm using database.sqlite



which one is faster database.sqlite or .db? can you convert this script for database.sqlite?
Title: Re: BAN cmd ...
Post by: . on May 07, 2015, 03:13 AM
The file extension doesn't matter in almost all cases. There's no performance difference and it's just a simple file on your system. You could name it some_database.who_dafuq_cares for all I know. Or simply not use an extension at all. Same thing applies to scripts and every other file in your computer as long as the Read/Write software doesn't enforce that. The extensions are just a hint to the user and to let the OS add some special decorations to the file (also a hint) without the need to read the header and find the file type manually (which would be almost impossible to do for all the files without some standardization first and would also a burden for your storage drives).