Regarding cutsom functions
#1

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.
Reply
#2

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
Reply
#3

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)