Public function cannot be used (undefined?)
#2

If you call the function before including the file, the compiler will not know about the function yet. Try including the file in the first few lines of your script before loading anything else. See if that makes a difference.

EDIT: I should learn to read, my bad. The way you describe it, it should work. Will look into it when I have some free time.
Reply


Messages In This Thread
Public function cannot be used (undefined?) - by Sellize - 08.12.2017, 11:56
Re: Public function cannot be used (undefined?) - by Sithis - 08.12.2017, 12:21
Re: Public function cannot be used (undefined?) - by 1fret - 08.12.2017, 12:26
Re: Public function cannot be used (undefined?) - by Sithis - 08.12.2017, 12:29
Re: Public function cannot be used (undefined?) - by Sellize - 08.12.2017, 12:35
Re: Public function cannot be used (undefined?) - by Sellize - 09.12.2017, 09:12
Re: Public function cannot be used (undefined?) - by OneDay - 09.12.2017, 09:37
Re: Public function cannot be used (undefined?) - by Sellize - 09.12.2017, 09:44
Re: Public function cannot be used (undefined?) - by OneDay - 09.12.2017, 10:07

Forum Jump:


Users browsing this thread: 1 Guest(s)