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