05.01.2014, 20:44
Unless the return value ("false") of PublicGMX gets assigned or used somewhere (see below for example), it doesn't matter. Some prefer to return 0 to indicate something has failed.
Return values in the default SA-MP callbacks usually control whether or not the same callback should also be called in filterscripts that are being loaded. In OnPlayerCommandText, returning 1 means that the command was found and that no further processing should occur.
In pretty much all other callbacks, the opposite is true. Returning 1 means that additional code in filterscripts will be executed. Returning 0 will prevent just that.
pawn Код:
if(PublicGMX() == true)
{
// success
}
else
{
// fail
}
In pretty much all other callbacks, the opposite is true. Returning 1 means that additional code in filterscripts will be executed. Returning 0 will prevent just that.