SA-MP Forums Archive
Regarding cutsom functions - 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: Regarding cutsom functions (/showthread.php?tid=205174)



Regarding cutsom functions - OldDirtyBastard - 31.12.2010

Hi, i wanna ask, when i wanna make a cutsom function, is there any diffrence when i make it like:

pawn Код:
myfunction(playerid)
{
    return 1;
}
or

pawn Код:
stock myfunction(playerid)
{
    return 1;
}
or

pawn Код:
forward myfucntion(playerid);
public myfunction(playerid)
{
    return 1;
}
Regards.


Re: Regarding cutsom functions - MadeMan - 31.12.2010

stock doesn't give a warning when you don't use that function.

public functions can be used with SetTimer and CallRemoteFunction.

https://sampwiki.blast.hk/wiki/Keywords:Initialisers


Re: Regarding cutsom functions - OldDirtyBastard - 31.12.2010

Quote:
Originally Posted by MadeMan
Посмотреть сообщение
stock doesn't give a warning when you don't use that function.

public functions can be used with SetTimer and CallRemoteFunction.

https://sampwiki.blast.hk/wiki/Keywords:Initialisers
Ah, thanks, explained alot, thank you.