26.07.2015, 17:03
For some reason the print function is getting called two times in the latest version (v0.1.9.4). Maybe it could also be an issue in the event system?
With the follow code:
I get this in the console/server_log:
Somebody else have also this issue or is it just me?
With the follow code:
PHP код:
$server.on('GameModeInit', function() {
print('test');
print('test2');
return 1;
});
$server.on('PlayerConnect', function(player) {
print('Player ' + player.id + ' joined.');
return 1;
});
Код:
[18:51:07] Player 0 joined. [18:51:07] test [18:51:07] test2 [18:51:07] Player 0 joined. [18:51:07] test [18:51:07] test2