Differences between "stock" "public" "normal function" ?
#2

Quote:
Originally Posted by [Lexi]
View Post
Hello guys i just want to know what are the differences between a stock :
pawn Code:
stock blabla(blablaid)
and a public function :
pawn Code:
forward OnSomeThingHappen(whatthing, wherething);
public OnSomeThingHappen(whatthing, wherething);
and a normal function without anything infront of it like :
pawn Code:
SetUpPlayerForClassSelection(bla bla)
Thanks in advance.
Well, you can return strings in stocks but you can't return any string in public callbacks. You can checkout the following link so you can understand better how these things works:

https://sampforum.blast.hk/showthread.php?tid=341545
Reply


Messages In This Thread
Differences between "stock" "public" "normal function" ? - by Glint - 18.09.2012, 09:49
Re: Differences between "stock" "public" "normal function" ? - by FalconX - 18.09.2012, 09:54
Re: Differences between "stock" "public" "normal function" ? - by [GF]Logic - 18.09.2012, 10:00
Re: Differences between "stock" "public" "normal function" ? - by Glint - 18.09.2012, 10:01
Re: Differences between "stock" "public" "normal function" ? - by playbox12 - 18.09.2012, 10:51
Re: Differences between "stock" "public" "normal function" ? - by Glint - 18.09.2012, 11:05

Forum Jump:


Users browsing this thread: 2 Guest(s)