AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help please (https://forums.alliedmods.net/showthread.php?t=107499)

(--eRRoR--) 10-27-2009 09:51

Help please
 
Y ma tring to at 2 comands that does the same thing.
Code:

public cmd_whois( id, arg[] )
{
 
//call a shared function to get the charsheet of the ID passed in
}
 
public
character_sheet( id )
{
 
//call a shared function to get the charsheet of the ID passed in
}
 
public
shared_function(id)
{
 
//generate the charsheet for w/e player is ID

the problem is how do y ad "public shared_function(id)" to both of them?

+karma

<VeCo> 10-27-2009 10:32

Re: Help please
 
I can't understand you...
Try this but...
PHP Code:

shared_function(id

put it in other function

(--eRRoR--) 10-27-2009 10:54

Re: Help please
 
ok y will tri it.
thanks.


All times are GMT -4. The time now is 17:37.

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