AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Calling 2 same forwards name in different plugins (https://forums.alliedmods.net/showthread.php?t=106664)

xbatista 10-17-2009 15:15

Calling 2 same forwards name in different plugins
 
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)

xPaw 10-17-2009 15:17

Re: Calling 2 same forwards name in different plugins
 
Why they should ? :/

A good example: Ham_Spawn "player"

xbatista 10-17-2009 15:18

Re: Calling 2 same forwards name in different plugins
 
I'm just asking if the plugins with the same forward name will confilct.

fysiks 10-17-2009 15:19

Re: Calling 2 same forwards name in different plugins
 
The answer that xpaw is getting at is "No".

xbatista 10-17-2009 15:20

Re: Calling 2 same forwards name in different plugins
 
okey thanks :P

ot_207 10-17-2009 15:32

Re: Calling 2 same forwards name in different plugins
 
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!

xbatista 10-17-2009 15:35

Re: Calling 2 same forwards name in different plugins
 
no :D

xPaw 10-17-2009 15:36

Re: Calling 2 same forwards name in different plugins
 
PHP Code:

public fw_handle_alive(id)
  
g_alive[id] = bool:is_user_alive(id); 

:P

ConnorMcLeod 10-17-2009 16:17

Re: Calling 2 same forwards name in different plugins
 
You use them registered as post, means that the game function has already been executed, so it's impossible that they conflict.


All times are GMT -4. The time now is 22:38.

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