Thread
: [Solved]
stock vs functions
View Single Post
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
10-04-2016 , 01:27 Re: stock vs functions
#
8
Quote:
Originally Posted by
ddhoward
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
View Public Profile
Send a private message to shavit
Find More Posts by shavit