Function with optional parameters
#1

Can anyone teach me how to make functions with one or more optional parameters?

Example:
pawn Код:
format(string, sizeof(string), "%s and %s are two strings", var_1, var_2);
format(param_1, param_2, param_3, optional_param_1, optional_param_2, ...); // this function has optional paramters
Reply


Messages In This Thread
Function with optional parameters - by Miguel - 30.10.2010, 01:53
Re: Function with optional parameters - by Cameltoe - 30.10.2010, 02:10
Re: Function with optional parameters - by Miguel - 30.10.2010, 02:26
Re: Function with optional parameters - by MadeMan - 30.10.2010, 11:12
Re: Function with optional parameters - by Miguel - 30.10.2010, 14:32
Re: Function with optional parameters - by MadeMan - 30.10.2010, 15:25
Re: Function with optional parameters - by Miguel - 01.11.2010, 03:45

Forum Jump:


Users browsing this thread: 1 Guest(s)