Thread: [Solved] stock vs functions
View Single Post
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 10-04-2016 , 01:27   Re: stock vs functions
Reply With Quote #8

Quote:
Originally Posted by ddhoward View Post
A function that is not marked as "public" cannot be directly called by Sourcemod; only other functions within the plugin can call the function.

Timers, forwards like OnGameFrame()/OnClientConnect()/OnPluginStart(), or players using commands, are all things that require Sourcemod to be able to run a function at the given moment. Hence, these functions should all be marked as public by the plugin author.

https://wiki.alliedmods.net/Introduc...wn#Functions_2
So unless it's a global forward I don't need to add public, correct?
__________________
retired
shavit is offline