给翻译一下这个函数说明?翻译一下内容,谢谢:register_native[ Main ] [ Core ] [ amxmodx.inc ] [ comments ] register_native - Declares a native that other plugins can use. Syntax: register_native ( const name[], const handler[], [
来源:学生作业帮助网 编辑:作业帮 时间:2024/07/31 19:53:52
![给翻译一下这个函数说明?翻译一下内容,谢谢:register_native[ Main ] [ Core ] [ amxmodx.inc ] [ comments ] register_native - Declares a native that other plugins can use. Syntax: register_native ( const name[], const handler[], [](/uploads/image/z/6131820-12-0.jpg?t=%E7%BB%99%E7%BF%BB%E8%AF%91%E4%B8%80%E4%B8%8B%E8%BF%99%E4%B8%AA%E5%87%BD%E6%95%B0%E8%AF%B4%E6%98%8E%3F%E7%BF%BB%E8%AF%91%E4%B8%80%E4%B8%8B%E5%86%85%E5%AE%B9%2C%E8%B0%A2%E8%B0%A2%EF%BC%9Aregister_native%5B+Main+%5D+%5B+Core+%5D+%5B+amxmodx.inc+%5D+%5B+comments+%5D+register_native+-+Declares+a+native+that+other+plugins+can+use.+Syntax%3A+++++register_native+%28+const+name%5B%5D%2C+const+handler%5B%5D%2C+%5B)
给翻译一下这个函数说明?翻译一下内容,谢谢:register_native[ Main ] [ Core ] [ amxmodx.inc ] [ comments ] register_native - Declares a native that other plugins can use. Syntax: register_native ( const name[], const handler[], [
给翻译一下这个函数说明?
翻译一下内容,谢谢:
register_native
[ Main ] [ Core ] [ amxmodx.inc ]
[ comments ]
register_native - Declares a native that other plugins can use.
Syntax:
register_native ( const name[], const handler[], [ style = 0 ] )
Type:
Native
Notes:
When a plugin uses your native (you should distribute a .inc), the handler will be called with two parameters: the calling plugin id, and the number of parameters.
If you set style=1, the method of parameter passing is a tad more efficient. Instead of "id, numParams", you label the native exactly as how the parameters should, in theory, be sent. Then for each byreference parameter, you call param_convert(num). This is theoretically more efficient but quite hacky. The method was discovered by dJeyL, props to him!
The advantage to keeping style set to 0 is that it more closely resembles the AMX Mod/X module API.
给翻译一下这个函数说明?翻译一下内容,谢谢:register_native[ Main ] [ Core ] [ amxmodx.inc ] [ comments ] register_native - Declares a native that other plugins can use. Syntax: register_native ( const name[], const handler[], [
register_native [主要] [核心] [amxmodx.inc] [评论]
register_native -宣称其他插入可能使用的当地人
句法: register_native (const名字[], const经理[], [样式= 0])类型: 当地笔记: 当插入式用途您的当地人(您应该分布.inc),经理将叫以二个参量: 叫的插入式id和参量的数量.
如果您设置style=1,方法参量通过是tad更加高效率. 而不是“id, numParams”,您确切地标记当地人和怎么应该,在理论上,送参量. 然后每个byreference参量,您要求param_convert (数字). 这理论上更加高效率,但相当hacky. 方法是由dJeyL,支柱发现的对他!
好处到保持样式被设置到0是它严密类似AMX Mod/X模块API