
January 21st, 2000, 01:31 PM
|
|
Junior Member
|
|
Join Date: Jan 2000
Posts: 2
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
I am trying to keep common functions in separate files and include/require them at the top of the current script. If I require two files in a script, calling a function from one file from the function in the other file does not work. Each function can be called successfully from the main script. For example:
***main script***
[snip]
require "util.inc" // contains print_debug()
require "scoreboard.inc" // contains get_scoreboard()
From within get_scoreboard(), I cannot print_debug.
Any ideas? Thanks.
--Brant
|