spritssight wrote:why would you make them seperate?
So that you can have one without the other, or vice versa.
spritssight wrote:I want the most flexablity as I can with this function
A function should only do one thing; trying to write a function that does everything in the interests of flexibility misses the point of having functions.
There is nothing stopping you from writing several separate functions, and if you don't want to write
show_navigation_bar();
show_stats_bar();
or whatever multiple times, you could write
function show_navigation_and_stats_bar()
{
show_navigation_bar();
show_stats_bar();
}
I believe that I would get errors as the different arg in the function not being used.
You either would or you wouldn't; it doesn't really matter what you believe 🙂 (by the way, you wouldn't).