题目
给翻译一下这个函数说明?
翻译一下内容,谢谢:
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[], [ 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.
提问时间:2020-12-28
答案
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
register_native -宣称其他插入可能使用的当地人
句法: register_native (const名字[], const经理[], [样式= 0])类型: 当地笔记: 当插入式用途您的当地人(您应该分布.inc),经理将叫以二个参量: 叫的插入式id和参量的数量.
如果您设置style=1,方法参量通过是tad更加高效率. 而不是“id, numParams”,您确切地标记当地人和怎么应该,在理论上,送参量. 然后每个byreference参量,您要求param_convert (数字). 这理论上更加高效率,但相当hacky. 方法是由dJeyL,支柱发现的对他!
好处到保持样式被设置到0是它严密类似AMX Mod/X模块API
举一反三
已知函数f(x)=x,g(x)=alnx,a∈R.若曲线y=f(x)与曲线y=g(x)相交,且在交点处有相同的切线,求a的值和该切线方程.
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
奥巴马演讲不用看稿子.为什么中国领导演讲要看?
想找英语初三上学期的首字母填空练习……
英语翻译
最新试题
- 1一座铁桥长200米,甲乙两人分别站在桥的两端,甲将耳朵贴到桥上,乙敲打一下桥面,这时甲听到了两声,分别是空气传播的声音和铁传播的声音,问:铁传播的声音比空气传播的快多少?备注:铁每秒钟5200米,空气
- 2He is ______the Reading Club
- 3硫酸银饱和溶液如何配制
- 4there is _____a to do to look after our environment A.a lot B.plenty of C.a lot of D.many thing
- 5这句英文有点看不明白了?
- 6六年级上册化简比并求比值(带单位的),出50道,
- 7若一元二次方程ax2+bx+c=0的两根为x1=-3,x2=1,则二次函数y=ax2+bx+c图象的对称轴是( ) A.直线x=1 B.y轴 C.直线x=-1 D.直线x=-2
- 8白居易《长恨歌》中的“渔阳鼙鼓动地来” 鼙怎么读?
- 9加权平均数与平均数怎么算
- 101、已知X、Y互为相反数,M,N互为倒数,A为绝对值最小的数,则4mn/2x+2y-3am=?
热门考点
- 1一种服装降价五分之一后,售价为96元,这种服装原价是多少元?
- 2△ABC的三边a,b,c,且满足a的平方减bc等于a(b-c),则该三角形为
- 3求相对论中的时间延迟详细解释
- 4第二次世界大战所有参战国
- 5Just like what you told,gt excited什么意思
- 6三角形两边分别为3和 5,其夹角余弦值是方程5x^2-7x-6=0得根.求此三角形面积
- 7两条直线相交,组成4个角,如果其中一个角是90°,那么其它三个角是( )度.这两条直线叫做( ).
- 8谜题:为什么小明写了一个字,人人都说他写了错字?
- 9献血屋 献血车怎么翻译 最好能告诉我一些用英语表达的献血是应该注意的事情~注意是英语的表达方式~
- 10Look at Tom!He_on the table.A stand B standing C are standing B is standing