Raised This Month: $ Target: $400
 0% 

Native help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 05-04-2018 , 07:09   Re: Native help
Reply With Quote #1

The native is correct. What is not correct is how you initialize your variable(meaning the test is wrong).
new iLevel[33] = 5 will set only index 0 to 5, the others remain 0. That's why your native returns 0. To set the entire array you must use the syntax I provided.
__________________

Last edited by HamletEagle; 05-04-2018 at 07:10.
HamletEagle is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:43.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode