07.07.2016, 20:06
I produced a small test case:
- server.cfg:
(I renamed the .dll)
- gm.pwn:
- fs.pwn:
- server_log.txt
(EDIT: I see that with this test case after "reloadfs fs" I don't get any error from crashdetect, if I load it too)
- server.cfg:
Quote:
gamemode0 gm 1 filterscripts fs plugins PawnCMD |
- gm.pwn:
pawn Код:
#include <a_samp>
#include <pawncmd> // the include too
main( )
{
}
public OnPlayerCommandReceived( playerid, cmd[ ], params[ ], flags )
{
printf( "GM - OnPlayerCommandReceived( %d, '%s', '%s', %d )", playerid, cmd, params, flags );
return 1;
}
public OnPlayerCommandPerformed( playerid, cmd[ ], params[ ], result, flags )
{
printf( "GM - OnPlayerCommandPerformed( %d, '%s', '%s', %d, %d )", playerid, cmd, params, result, flags );
return 1;
}
CMD:gm( playerid, params[ ] )
{
SendClientMessage( playerid, -1, "GM - Hello, it's me..." );
return 1;
}
pawn Код:
#include <a_samp>
#define FILTERSCRIPT
#include <pawncmd>
public OnPlayerCommandReceived( playerid, cmd[ ], params[ ], flags )
{
printf( "FS - OnPlayerCommandReceived( %d, '%s', '%s', %d )", playerid, cmd, params, flags );
return 1;
}
public OnPlayerCommandPerformed( playerid, cmd[ ], params[ ], result, flags )
{
printf( "FS - OnPlayerCommandPerformed( %d, '%s', '%s', %d, %d )", playerid, cmd, params, result, flags );
return 1;
}
CMD:fs( playerid, params[ ] )
{
SendClientMessage( playerid, -1, "FS - Hello, it's me..." );
return 1;
}
Quote:
Server Plugins -------------- Loading plugin: PawnCMD Pawn.CMD plugin v3.1 by urShadow loaded Loaded. Loaded 1 plugins. [..] /test (failed, of course, just tested): FS - OnPlayerCommandReceived( 0, 'test', '', 0 ) FS - OnPlayerCommandPerformed( 0, 'test', '', -1, 0 ) /gm (failed and executes the FS callbacks): FS - OnPlayerCommandReceived( 0, 'gm', '', 0 ) FS - OnPlayerCommandPerformed( 0, 'gm', '', -1, 0 ) /fs (everything went ok): FS - OnPlayerCommandReceived( 0, 'fs', '', 0 ) FS - OnPlayerCommandPerformed( 0, 'fs', '', 1, 0 ) |