Raised This Month: $51 Target: $400
 12% 

No team flash cs 1.6 plugin problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ZyberBeats
New Member
Join Date: Aug 2022
Old 08-26-2022 , 13:48   No team flash cs 1.6 plugin problem
Reply With Quote #1

Hi.
I got this problem with the simple_no_team_flash plugin which is the only plugin i found to work for my server.

The logs shows:

[AMXX] Displaying debug trace (plugin "simple_no_team_flash.amxx", version "1.0")
[AMXX] Run time error 10: native error (native "get_pdata_int")
[AMXX] [0] simple_no_team_flash.sma::MsgScreenFade (line 21)

I can see where the problem is, but i don't know what change to do. Can someone help?

Thanks in advance

The code is:

Code:
#include < amxmodx >
#include < fakemeta >

new g_MsgScreenFade, g_Flasher

public plugin_init() 
{
	register_plugin( "Simple No Team Flash", "1.0", "P.Of.Pw" )
	
	g_MsgScreenFade = get_user_msgid( "ScreenFade" )
	register_message( g_MsgScreenFade, "MsgScreenFade" )
	
	register_forward( FM_SetModel, "Forward_SetModel" ) 
}

public MsgScreenFade( MsgId, MsgDest, id )
{	
	if( get_msg_arg_int( 4 ) == 255 && get_msg_arg_int( 5 ) == 255 && get_msg_arg_int( 6 ) == 255 )
	{			
		if( id != g_Flasher && get_pdata_int( id, 114 ) == get_pdata_int( g_Flasher, 114 ) )
		{
			g_Flasher = 0
			return PLUGIN_HANDLED
		}
	}
	
	return PLUGIN_CONTINUE
}

public Forward_SetModel( Entity, const szModel[ ] )
{
	if( strlen( szModel ) != 22 )
		return FMRES_IGNORED

	if( szModel[ 7 ] != 'w' || szModel [ 9 ] != 'f' || szModel[ 14 ] != 'b' )
		return FMRES_IGNORED

	if( !pev_valid( Entity ) )
		return FMRES_IGNORED

	static Float:szVelocity[ 3 ], id
	pev( Entity, pev_velocity, szVelocity )
	if( !szVelocity[ 0 ] && !szVelocity[ 1 ] && !szVelocity[ 2 ] )
		return FMRES_IGNORED

	id = pev( Entity, pev_owner )
	set_task( 1.52, "get_flasher", 524627+id ) // Tender

	return FMRES_HANDLED
}

// Tender
public get_flasher( id )
	g_Flasher = ( id - 524627 )
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang3081\\ f0\\ fs16 \n\\ par }
*/
ZyberBeats is offline
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 09-05-2022 , 17:49   Re: No team flash cs 1.6 plugin problem
Reply With Quote #2

https://forums.alliedmods.net/showthread.php?t=303454
__________________
DruGzOG is offline
Send a message via AIM to DruGzOG
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:26.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode