About register_native
plugin A.sma
PHP Code:
PHP Code:
|
Re: About register_native
public native_user_name(id, const name[], len){
get_user_name(id,name,len) return name } new name[32] user_name(id, name, 31) |
Re: About register_native
a native is atully... a native... iam not 100% sure i get what u are looking for... but if u want the server to print the client name on connect do it like this:
PHP Code:
|
Re: About register_native
maybe he doesn't like amxx module...
|
Re: About register_native
Thanks #3 and #4,
I hope to draw inferences about other cases from one instance . Quote:
|
Re: About register_native
Maybe this.
Code:
|
Re: About register_native
Is your native included in the other file from an .inc?
|
Re: About register_native
Reply #6
thanks,But has not reacted !!! Is it really impossible? Reply #7 yes,included. |
Re: About register_native
You register the native in plugin_natives, not in plugin_int. And, also in plugin_natives, don't forget to do 'register_library("your_lib_name")', otherwise plugins requesting your lib will fail to load.
|
Re: About register_native
I don't think you can return arrays with dynamic natives.
However, you can do this: Code:
Code:
Code:
|
| All times are GMT -4. The time now is 09:12. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.