Raised This Month: $ Target: $400
 0% 

Calling 2 same forwards name in different plugins


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 10-17-2009 , 15:15   Calling 2 same forwards name in different plugins
Reply With Quote #1

They will not conflict? If I put for example :
PHP Code:
RegisterHamHam_Item_Deploy "weapon_xm1014" "Fwd_ItemDeploy"); 
(xx.amxx)
and in :
PHP Code:
RegisterHamHam_Item_Deploy "weapon_xm1014" "Fwd_ItemDeploy"); 
(xx2.amxx)
__________________
xbatista is offline
Send a message via Skype™ to xbatista
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 10-17-2009 , 15:17   Re: Calling 2 same forwards name in different plugins
Reply With Quote #2

Why they should ? :/

A good example: Ham_Spawn "player"
__________________
xPaw is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 10-17-2009 , 15:18   Re: Calling 2 same forwards name in different plugins
Reply With Quote #3

I'm just asking if the plugins with the same forward name will confilct.
__________________
xbatista is offline
Send a message via Skype™ to xbatista
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-17-2009 , 15:19   Re: Calling 2 same forwards name in different plugins
Reply With Quote #4

The answer that xpaw is getting at is "No".
__________________
fysiks is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 10-17-2009 , 15:20   Re: Calling 2 same forwards name in different plugins
Reply With Quote #5

okey thanks
__________________
xbatista is offline
Send a message via Skype™ to xbatista
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 10-17-2009 , 15:32   Re: Calling 2 same forwards name in different plugins
Reply With Quote #6

At first I thought that you refered to something like this.

PHP Code:
new bool:g_alive[33]
RegisterHam(Ham_Spawn"player""fw_handle_alive"1)
RegisterHam(Ham_Killed"player""fw_handle_alive"1)

public 
fw_handle_alive(id)
{
 if (
is_user_alive(id))
  
g_alive[id] = true
 
else
  
g_alive[id] = false

Of course it works for the situation you posted and the one I though so also!
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 10-17-2009 , 15:35   Re: Calling 2 same forwards name in different plugins
Reply With Quote #7

no
__________________
xbatista is offline
Send a message via Skype™ to xbatista
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 10-17-2009 , 15:36   Re: Calling 2 same forwards name in different plugins
Reply With Quote #8

PHP Code:
public fw_handle_alive(id)
  
g_alive[id] = bool:is_user_alive(id); 
__________________
xPaw is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-17-2009 , 16:17   Re: Calling 2 same forwards name in different plugins
Reply With Quote #9

You use them registered as post, means that the game function has already been executed, so it's impossible that they conflict.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
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 22:38.


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