Removed use of deprecated functions.

This commit is contained in:
Richard Helgeby 2010-07-25 21:08:22 +02:00
parent 038c03dbbe
commit fcb5b3f3d7
2 changed files with 7 additions and 4 deletions

View File

@ -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;
}
/**

View File

@ -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);
}
/**