Native: get_user_rank
I made Native for get_user_rank but it show me only first word of rank name how to fix it ?
https://i.ibb.co/PDqtd9P/5121.png PHP Code:
|
Re: Native: get_user_rank
PHP Code:
|
Re: Native: get_user_rank
|
Re: Native: get_user_rank
@alferd - Not worked
@Bugsy - I did it but i have got this problme What i did: PHP Code:
Code:
L 06/29/2020 - 16:16:22: [AMXX] Run time error 10 (plugin "lvl.amxx") (native "get_param") - debug not enabled |
Re: Native: get_user_rank
Quote:
Take a real quick look at this post. So you can see where's the difference between style 1 and the old one. |
Re: Native: get_user_rank
Quote:
|
Re: Native: get_user_rank
Quote:
Style 0 is not "old", in fact it is what you should use. Style 1 is deprecated, do not use it. OP, just switch to style 0 natives, no point in trying to fix code you shouldn't write in the first place. Then read this: https://forums.alliedmods.net/showthread.php?t=41251 P.S: enable debug already. Don't post error logs with debug disabled, they are useless. |
Re: Native: get_user_rank
Quote:
https://i.ibb.co/Qj8jZDF/15.png .inc Quote:
PHP Code:
|
Re: Native: get_user_rank
You're still using style 1
register_native("get_user_rank", "_get_user_rank", 1) And maxlen is set to 2, use charsmax( g_mPlayerData[][ m_szRankName ] ) set_string( id, g_mPlayerData[ g_iPlayerLevel[ id ] ][ m_szRankName ], 2) |
Re: Native: get_user_rank
And show me how you're using this native in your plugin. You should post all code, not snippets.
|
All times are GMT -4. The time now is 17:45. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.