19.12.2014, 15:04
By: wiki.sa-mp
NOTE: For certain callbacks, the value that is returned by the callback ('return x;') determines whether the callback will continue to be called in other scripts. For example; OnPlayerCommandText requires 0 to be returned if a command isn't found, so that the callback will search through the other loaded scripts for an existing command. Returning 1 signals that the command has been found and the callback does not require calling in other scripts. This is different for other callbacks such as OnPlayerConnect, in which 1 must be returned for it to be called in other scripts. This is not the case for any other callback.
NOTE: For certain callbacks, the value that is returned by the callback ('return x;') determines whether the callback will continue to be called in other scripts. For example; OnPlayerCommandText requires 0 to be returned if a command isn't found, so that the callback will search through the other loaded scripts for an existing command. Returning 1 signals that the command has been found and the callback does not require calling in other scripts. This is different for other callbacks such as OnPlayerConnect, in which 1 must be returned for it to be called in other scripts. This is not the case for any other callback.