Stock and public
#2

public functions can be called via timer, or CallRemote/LocalFunction.
Stocks however cannot.

So
pawn Код:
SetTimer("Function",1000,false);

stock Function(playeird)
will not work.
pawn Код:
SetTimer("Function",1000,false);

forward Function(playerid);
public Function(playeird)
Will work.

Also, public functions can't return strings, currently.
Reply


Messages In This Thread
Stock and public - by Tomer!.$ - 20.04.2012, 11:00
Re: Stock and public - by ReneG - 20.04.2012, 11:03
Re: Stock and public - by Calgon - 20.04.2012, 11:04
Re : Stock and public - by Tomer!.$ - 20.04.2012, 11:04
Re: Stock and public - by Calgon - 20.04.2012, 11:06
Re : Stock and public - by Tomer!.$ - 20.04.2012, 11:09
Re: Stock and public - by Calgon - 20.04.2012, 11:12

Forum Jump:


Users browsing this thread: 2 Guest(s)