Try running test.bat manually and seeing if it exits.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenupluginFuncs.LogMessage("%s", "Hello World");
it prints Hello World.error = pluginFuncs.GetLastError();
Console.WriteLine(error);
it prints None.pluginFuncs.SetMaxPlayers(54);
it causes a segmentation fault somewhere (gdb can't figure it out. it just shows the address of the location)StringBuilder serverNameBuilder = new StringBuilder(129);
VcmpError error = pluginFuncs.GetServerName(serverNameBuilder, (UIntPtr) 128);
Console.WriteLine("Error code: " + error.ToString());
Console.WriteLine("Server name: " + serverNameBuilder.ToString());
it causes a segmentation fault at strcpy.CREATE USER my_user IDENTIFIED BY 'password_goes_here';
CREATE DATABASE my_database;
GRANT ALL PRIVILEGES ON my_database.* TO my_user;
Quote from: NewK on Aug 07, 2018, 01:49 PMI'm aware of that, yeah. But the majority of JavaScript libraries that support networking or disk IO are made for node.js. So you won't really get much benefit in using this. ECMAScript by itself is a terrible language. There was this infamous picture which I can't find right now that shows what happens when you're using some operands with different types.Quote from: EK.IceFlake on Aug 07, 2018, 01:13 PMIt'd be nice, but one of the main advantages of JavaScript is the number of libraries there are out there. Most of the libraries that deal with IO stuff won't work because they rely on Node.JS's API.No, that's not one of the main advantages of javascript, that's one of the main advantages of node.js. Do not mix up the 2, those are 2 very different things. Javascript is not node.js and node.js is not javascript. Node.js is simply a set of C++ APIs that are made available to a javascript context running on top of V8. I never claimed this to be a node.js plugin, I said this is a javascript plugin, as in, actual ecmascript. Think of it this way: Nodejs is a set of C++ APIs exposed to a javascript context running on V8. This plugin is a set of Java APIs exposed to a javascript context running on V8. Java was used to rely on the already existing VCMP Java plugin to expose VCMP functionality and to share the same codebase so it's easier to maintain in the future.
Quote from: Doom_Kill3R on Jul 22, 2018, 07:50 AMQuote from: Stormeus on Jul 21, 2018, 07:37 PMIf you're going to the effort of writing Squirrel code in an INI file, why not just get rid of the INI part and use dofile?
He means since you are saving the data in ini as pure squirrel code, you can directly use dofile to load all the CreateObject statements from the ini file instead of reading them from ini as strings and then executing them/creating objects with them.
trydofile("objects.ini")
and it should load all the objects
Cursor <- {
"Obtain": function () {
++this.Cursors;
this.Refresh();
},
"Release": function () {
--this.Cursors;
this.Refresh();
},
"ObtainSmart": function (wref) {
this.Obtain();
local routine;
routine = ::Routine(function () {
if (wref.ref() == null) {
this.Release();
routine.Destroy();
}
}, 0, 0, this);
},
"Refresh": function () {
::GUI.SetMouseEnabled(this.Cursors > 0)
}
"Cursors": 0
}
Cursor.ObtainSmart(this.weakref());
the cursor will automatically be released once all references to your class have been removed.Quote from: vitogta on Jul 19, 2018, 10:42 AMIf you don't free your queries, every query will cause your server's memory usage to increase a little. After a while, you will run out of memory.Quote from: . on Jul 19, 2018, 10:01 AMWhat plugin is this? Because we have two SQL related plugins. MySQL and SQLite. And I can't find it in neither of them.He should be asking about FreeSQLQuery of SQLite.
Quote from: Athanatos on Jul 06, 2018, 08:49 AMDoes this result in any error or crash? If no, then that issue should not be important.Doesn't matter. It exists and needs to be dealt with.
Quote from: Stormeus on Jul 07, 2018, 05:25 PMQuote from: EK.IceFlake on Jul 07, 2018, 07:28 AMWhen you modify something, you gain copyright over what you've created. It also inherits the original copyright which is why there's the apache license notice included in the original header file.
That's not really how copyright works, but it doesn't really matter since this is compatible with the Apache License we use for the SDK anyway.
Quote from: Athanatos on Jul 07, 2018, 06:50 AM# Copyright © 2018 Fleka
No shit. You just modified the SDK. You don't deserve any copyright stuff.
Quote from: Doom_Kill3R on Jul 06, 2018, 06:36 AMThis is an English forum and keep your conversations in English.https://forum.vc-mp.org/?topic=2.0
As for you @UrbanY, Your scripts are based on version 03 which had server-sided UIs. They are deprecated now and will not work on the newer versions. Either stick around on 03 or create proper client side scripts on the latest version.