SA-MP Forums Archive
Any difference? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Any difference? (/showthread.php?tid=187579)



Any difference? - Jeffry - 03.11.2010

Hello guys,

I wondered if there is any differnece between these three things:

pawn Код:
forward GetID(playerid);
public GetID(playerid)
{
    return playerid;
}
pawn Код:
stock GetID(playerid)
{
    return playerid;
}
pawn Код:
GetID(playerid)
{
    return playerid;
}
I know the code is dumb, but it is just an example code.

I hope someone can give me some info about them.


Jeffry


Re: Any difference? - Sub Z3rO - 03.11.2010

In my opinion its does prety much the the same lol


Re: Any difference? - Miguel - 03.11.2010

https://sampwiki.blast.hk/wiki/Stocks
https://sampwiki.blast.hk/wiki/Public_functions

I guess there's no difference at all...


Re: Any difference? - Jeffry - 04.11.2010

Thanks for the info so far.