AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Multiple Funktions whit same name (https://forums.alliedmods.net/showthread.php?t=173021)

Stylaa 11-29-2011 02:19

Multiple Funktions whit same name
 
Is it possible to have more than 1 Function whit the same name fe.

PHP Code:

// 1st
public HookPrecache()
{
...
}

// 2nd
public HookPrecache()
{
...


and in plugin_precache
HookPrecache()

Or is there may an other way to do anythink simlear?

jim_yang 11-29-2011 03:16

Re: Multiple Funktions whit same name
 
any specific reason you must do this ? just put all things in that function, or name functions differently and call them one by one in that function.


All times are GMT -4. The time now is 08:30.

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