View Single Post
Old 26/07/2015, 06:24 PM   #72
!damo!spiderman
Huge Clucker
 
!damo!spiderman's Avatar
 
Join Date: Oct 2006
Posts: 244
Reputation: 160
Default Re: samp.js - JavaScript for SA-MP

Quote:
Originally Posted by BlackBank3 View Post
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:
PHP Code:
$server.on('GameModeInit', function() {
    print(
'test');
    print(
'test2');
    return 
1;
});

$server.on('PlayerConnect', function(player) {
    print(
'Player ' player.id ' joined.');
    return 
1;
}); 
I get this in the console/server_log:
Code:
[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
Somebody else have also this issue or is it just me?
That's really weird, I haven't noticed anything like that in my tests.

Are you using the Windows version or Linux?
__________________
!damo!spiderman is offline   Reply With Quote