Native Problem
How i can get name days with native? I need to put in hudmessage syntax!
Problem: Code:
L 07/01/2014 - 14:34:11: [AMXX] Run time error 10 (plugin "jbextream.amxx") (native "get_game") - debug not enabled!Code:
public native_get_game(){ return gs_DaysList[ gi_WichDay-1 ]Code:
new const gs_DaysList[ ][ ] = |
Re: Native Problem
This should not be native. It's better as a stock, I think. (not really sure for the stock, but definately native is not the best) Just replace
PHP Code:
PHP Code:
|
Re: Native Problem
Quote:
Crizzatu did you add register_native ? |
Re: Native Problem
I don't think he needs natives here, since I guess he is not going to use it in other plugins. Just modifying it to stock will solute the problem. That's why I mentioned, that creating a native is not the best way.
|
Re: Native Problem
What is the best way ?
|
Re: Native Problem
Try with stock. I think it should be the most usefull way, since you don't use it as a native in other plugins.
|
Re: Native Problem
I need with native because i need to put hudmessage name of days in another plugin.
|
Re: Native Problem
You can search at all. But this information helped me alot.
https://forums.alliedmods.net/showthread.php?t=41251 |
Re: Native Problem
Flick3rR please stop posting when you don't know the answer.
@Crizzatu First ensure that the native is registered correctly: PHP Code:
The string will be sent back and passed byref. So here's how it should look: PHP Code:
PHP Code:
PHP Code:
|
| All times are GMT -4. The time now is 21:17. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.