What is the difference between public and stock
#1

What is the difference between public and stock ?
Reply
#2

Nothing really, except that stocks cannot be passed through timers and are ignored by the compiler unless used.
Reply
#3

public functions should return something, and they have to be forwarded

stock functions doesn't need that
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)