Optional parameters?
#1

Im trying to create a function which looks like:

Function(playerid, optional:amount);

And when amount isn't specified, it will be 0.

I see this in some default functions (Blah(playerid, thing=1)

Thanks
Reply
#2

pawn Code:
stock Function(playerid, amount = 0)
{
do();
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)