Allow functions to accept any kind of argument

This commit is contained in:
OciXCrom 2018-09-28 15:04:11 +02:00
parent 15b5f971c3
commit 541c1f2fd8
2 changed files with 8 additions and 8 deletions

View File

@ -808,7 +808,7 @@ native show_menu(index, keys, const menu[], time = -1, const title[] = "");
* (truncated) to an integer * (truncated) to an integer
* 2 - Returns the number of cells written to the buffer * 2 - Returns the number of cells written to the buffer
*/ */
native read_data(value, any:...); native read_data(any:value, any:...);
/** /**
* Returns the number of values in the client message. * Returns the number of values in the client message.

View File

@ -496,7 +496,7 @@ native get_msg_args();
* *
* @return Argument type (see ARG_* constants in message_const.inc) * @return Argument type (see ARG_* constants in message_const.inc)
*/ */
native get_msg_argtype(argn); native get_msg_argtype(any:argn);
/** /**
* Gets the integer value of a specified argument. * Gets the integer value of a specified argument.
@ -510,7 +510,7 @@ native get_msg_argtype(argn);
* @error If an invalid message argument is passed, an * @error If an invalid message argument is passed, an
* error will be thrown. * error will be thrown.
*/ */
native get_msg_arg_int(argn); native get_msg_arg_int(any:argn);
/** /**
* Gets the float value of a specified argument. * Gets the float value of a specified argument.
@ -524,7 +524,7 @@ native get_msg_arg_int(argn);
* @error If an invalid message argument is passed, an * @error If an invalid message argument is passed, an
* error will be thrown. * error will be thrown.
*/ */
native Float:get_msg_arg_float(argn); native Float:get_msg_arg_float(any:argn);
/** /**
* Gets the string value from a specified argument. * Gets the string value from a specified argument.
@ -540,7 +540,7 @@ native Float:get_msg_arg_float(argn);
* @error If an invalid message argument is passed, an * @error If an invalid message argument is passed, an
* error will be thrown. * error will be thrown.
*/ */
native get_msg_arg_string(argn, szReturn[], iLength); native get_msg_arg_string(any:argn, szReturn[], iLength);
/** /**
* Sets the integer value of a specified argument. * Sets the integer value of a specified argument.
@ -556,7 +556,7 @@ native get_msg_arg_string(argn, szReturn[], iLength);
* @error If an invalid message argument is passed, an * @error If an invalid message argument is passed, an
* error will be thrown. * error will be thrown.
*/ */
native set_msg_arg_int(argn, argtype, iValue); native set_msg_arg_int(any:argn, argtype, iValue);
/** /**
* Sets the float value of a specified argument. * Sets the float value of a specified argument.
@ -572,7 +572,7 @@ native set_msg_arg_int(argn, argtype, iValue);
* @error If an invalid message argument is passed, an * @error If an invalid message argument is passed, an
* error will be thrown. * error will be thrown.
*/ */
native set_msg_arg_float(argn, argtype, Float:fValue); native set_msg_arg_float(any:argn, argtype, Float:fValue);
/** /**
* Sets the string value of a specified argument. * Sets the string value of a specified argument.
@ -587,7 +587,7 @@ native set_msg_arg_float(argn, argtype, Float:fValue);
* @error If an invalid message argument is passed, an * @error If an invalid message argument is passed, an
* error will be thrown. * error will be thrown.
*/ */
native set_msg_arg_string(argn, const szString[]); native set_msg_arg_string(any:argn, const szString[]);
/** /**
* Gets the origin of a message. * Gets the origin of a message.