sry for push or dubble post.
i tried to check it in csdm or zp inc but couldnt find anything which can help me.
main plugin/test1.amxx
PHP Code:
#include <amxmodx>
#include <fun>
#include <hamsandwich>
#include <cstrike>
#include <jail_manager>
#define TASK_PLAYERFREE 1000
new g_tempid,g_MaxPlayers,g_leach_cvar,bool:g_player_is_leader[33],iPlayers[ 32 ], iNum,g_printed,we_have_a_leader,gVoteMenu,
gVotes[2],gVoting,g_delay,g_percent,bool:g_Vote_Player[33],g_voted,g_free_vote,g_its_freeday,g_rounds,g_had_freeround,can_vote,
g_vote_round_number,g_let_be_freeday,g_vote_canceled,g_vip_admin,g_show_votes,g_welcomed[33],admin_gave_freeday,g_welcome_menu
public plugin_natives( )
{
register_native( "is_player_leader", "_is_player_leader", 1 );
}
public bool:_is_player_leader( iPlugin, iParams )
{
return g_player_is_leader[ get_param( 1 ) ];
}
inc file =
PHP Code:
#if defined _jail_manager_included
#endinput
#endif
#define _jail_manager_included
native is_player_leader( const id );
sub-plugin/test2.amxx
PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <jail_manager>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say a","function")
// Add your code here...
}
public function( id )
{
if( is_player_leader( id ) )
{
// player is leader
client_print(id,print_chat,"jaaaaaaaaaa")
}
else
{
// not leader
client_print(id,print_chat,"neiiiiiiiiiiiin")
}
}
error :
PHP Code:
L 03/05/2010 - 10:18:25: Start of error session.
L 03/05/2010 - 10:18:25: Info (map "de_dust2") (file "addons/amxmodx/logs/error_20100305.log")
L 03/05/2010 - 10:18:25: Wrong style of dynamic native
L 03/05/2010 - 10:18:25: [AMXX] Displaying debug trace (plugin "test1.amxx")
L 03/05/2010 - 10:18:25: [AMXX] Run time error 10: native error (native "get_param")
L 03/05/2010 - 10:18:25: [AMXX] [0] test1.sma::_is_player_leader (line 19)
L 03/05/2010 - 10:18:25: Unhandled dynamic native error
i tried to search and found more topics like
http://forums.alliedmods.net/showthread.php?t=118049 but the same resault. (all are the same

)
__________________