Problem to return string from nativ
Hi,
How can I return a string? PHP Code:
PHP Code:
With what I saw, PAWN can not make a return string, only values? |
Re: Problem to return string from nativ
Don't remember if it's possible to return string in natives. Since you tested, I guess not. You can anyway pass it by reference, using set_string. You could also return set_string, so it will return the prefix length.
|
Re: Problem to return string from nativ
Quote:
PHP Code:
|
Re: Problem to return string from nativ
You can do this too...
PHP Code:
PHP Code:
|
Re: Problem to return string from nativ
Style 1 is deprecated, and style 0 just works fine.
Following code is working, and, kostov, you have put style 1 in your first post, and you have implemented native as style 0, so put 0 in register_native line. PHP Code:
|
Re: Problem to return string from nativ
The error is gone but not earning a prefix:
PHP Code:
Code:
Kostov : /prefix |
Re: Problem to return string from nativ
Show your test code.
|
Re: Problem to return string from nativ
Quote:
PHP Code:
PHP Code:
PHP Code:
Code:
Kostov : /prefix |
Re: Problem to return string from nativ
You have to retrieve strings byref :
PHP Code:
PHP Code:
In the main plugin : PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
Other way, you can put in the .inc file : Code:
#if defined _prefix_includedPHP Code:
|
Re: Problem to return string from nativ
Thank you ConnorMcLeod. It works with the library
|
| All times are GMT -4. The time now is 06:18. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.