Removed use of deprecated functions.
This commit is contained in:
parent
038c03dbbe
commit
fcb5b3f3d7
|
@ -132,13 +132,15 @@ public Plugin:myinfo =
|
|||
* @param late True if the plugin was loaded after map change, false on map start.
|
||||
* @param error Error message if load failed.
|
||||
* @param err_max Max length of the error message.
|
||||
*
|
||||
* @return APLRes_Success for load success, APLRes_Failure or APLRes_SilentFailure otherwise.
|
||||
*/
|
||||
public bool:AskPluginLoad(Handle:myself, bool:late, String:error[], err_max)
|
||||
public APLRes:AskPluginLoad2(Handle:myself, bool:late, String:error[], err_max)
|
||||
{
|
||||
// TODO: EXTERNAL API
|
||||
|
||||
// Let plugin load.
|
||||
return true;
|
||||
return APLRes_Success;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -111,8 +111,9 @@ stock bool:VoiceSetClientListening(iReceiver, iSender, bool:bListen)
|
|||
return false;
|
||||
}
|
||||
|
||||
SetClientListening(iReceiver, iSender, bListen);
|
||||
return true;
|
||||
new ListenOverride:override = bListen ? Listen_Yes : Listen_No;
|
||||
|
||||
return SetListenOverride(iReceiver, iSender, override);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user