06.06.2015, 21:58
Good night.
A few months back I've started a project, but I never completed it.
Anyways, I would like to have your feedback, to make sure it I should spend more time with this or not.
Basically, here's the Overview of the project:
Anyways, besides the above, here's what I've got actually done:
Below, You can see an exemple of including other files and using callbacks, Since I haven't finished every function yet, I'm not going to give, for now, the syntax of the functions.
----
I know that the topic ain't even organized, however, for what you can understand, I would like to have your feedback related to "Should I finish it or not!?".
I've got thousands of "projects" here below the 5% done, and I'm deleting them.
However, I've already spent some time in this project, wrote around 1550 lines, fucked up my brain searching for a good implementation of javascript(and the V7 from censanta looks good for this, besides the v8 of ******) and I think it might be useful for someone.
But, sadly, the free time I have now isn't much, and I don't want to spend it developing stuff which isn't going to change anything.
Thanks for reading.
A few months back I've started a project, but I never completed it.
Anyways, I would like to have your feedback, to make sure it I should spend more time with this or not.
Basically, here's the Overview of the project:
Код:
JSGDK, Or Javascript Gamemode Development Kit, consists in the integration of the Javascript language in the Multiplayer Mod SA:MP. This plugin would give the possibility to develop SA:MP Gamemodes using Javascript in a easy, "hassle-free" way with the confort of the JavaScript language.
Код:
- Possibility to "Include" other javascript files and use the variables and functions in the other file. - Events, You can add as many events as you need for the server callbacks - 80% of the a_player include, the functions are working perfectly, missing near 20 functions, besides the defines
PHP код:
// Entry.js(The "entry point" file to be loaded from the JavaScript V7 Instance)
var MOTD = "Hello world!";
Include("otherfile.js");
addEventHandler("OnGameModeInit", function() {
addEventHandler("OnPlayerConnect", handlePlayerConnect)
});
// otherfile.js
function handleGameModeExit() {
print("Not to be called")
}
function handlePlayerConnect(playerid) {
print("Player(" + playerid + ") connected, sending the MOTD " + MOTD + "!");
removeEventHandler("OnGameModeExit", handleGameModeExit)
}
addEventHandler("OnGameModeExit", function(playerid) {
print("To be called");
});
I know that the topic ain't even organized, however, for what you can understand, I would like to have your feedback related to "Should I finish it or not!?".
I've got thousands of "projects" here below the 5% done, and I'm deleting them.
However, I've already spent some time in this project, wrote around 1550 lines, fucked up my brain searching for a good implementation of javascript(and the V7 from censanta looks good for this, besides the v8 of ******) and I think it might be useful for someone.
But, sadly, the free time I have now isn't much, and I don't want to spend it developing stuff which isn't going to change anything.
Thanks for reading.