Code:
L 09/13/2013 - 16:13:14: Public function -1 is invalid
L 09/13/2013 - 16:13:14: [AMXX] Run time error 10 (plugin "BMSK.amxx") (native "callfunc_begin_i") - debug not enabled!
L 09/13/2013 - 16:13:14: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes)
PHP Code:
ActionPointBlock(id, ent)
{
new Float:gametime = get_gametime();
if ( !( gametime >= g_pointblock_next_use[id] ) && ( get_user_team ( id ) == 1 ) )
{
if ( !g_has_hud_text[id] )
{
set_hudmessage(gHudRed, gHudGreen, gHudBlue, gfTextX, gfTextY, gHudEffects, gfHudFxTime, gfHudHoldTime, gfHudFadeInTime, gfHudFadeOutTime, gHudChannel);
show_hudmessage(id, "%s %s^nXP Block Block^nNext Use: 1 round", PLUGIN_PREFIX, PLUGIN_VERSION );
}
return PLUGIN_HANDLED;
}
if(get_user_team(id) == 2)
{
if ( !g_has_hud_text[id] )
{
set_hudmessage(gHudRed, gHudGreen, gHudBlue, gfTextX, gfTextY, gHudEffects, gfHudFxTime, gfHudHoldTime, gfHudFadeInTime, gfHudFadeOutTime, gHudChannel);
show_hudmessage(id, "%s %s^nXP Block^nOnly Terrorists Can Use This Block", PLUGIN_PREFIX, PLUGIN_VERSION );
}
return PLUGIN_HANDLED;
}
new property[5];
GetProperty(ent, 1, property);
if ( callfunc_begin_i(g_PM_hFunc, g_PM_hPlugin) == 1 ) {
callfunc_push_int(id);
callfunc_push_int(str_to_num(property));
callfunc_end();
}
BM_Print(id, "^3You just picked up^4 %i^3 more Points!", str_to_num(property));
emit_sound(id, CHAN_STATIC, g_sound_pointblock, 1.0, ATTN_NORM, 0, PITCH_NORM);
g_block_status[id] = true;
GetProperty(ent, 2, property);
g_pointblock_next_use[id] = gametime + str_to_float(property);
return PLUGIN_HANDLED;
}
__________________