What is the difference between public and stock
#4

A function only needs to be public if the server itself should be able to call it. This includes all callbacks, and functions that are called by timers. The rest of the functions don't need to be public.

pawn Код:
MyFunction(msg[])
{
    print(msg);
}
Will also work just fine.
Reply


Messages In This Thread
What is the difference between public and stock - by ExEx - 02.12.2010, 18:52
Re: What is the difference between public and stock - by Grim_ - 02.12.2010, 18:53
Re: What is the difference between public and stock - by Patrik356b - 02.12.2010, 18:54
Re: What is the difference between public and stock - by Vince - 02.12.2010, 19:52

Forum Jump:


Users browsing this thread: 1 Guest(s)