Raised This Month: $ Target: $400
 0% 

Dynamic Array run time error


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
krisztian2
Junior Member
Join Date: Feb 2019
Old 01-13-2021 , 06:23   Dynamic Array run time error
Reply With Quote #1

Dear scripters!

I have a problem with this array, because the server logged this error message:
[AMXX] Run time error 10: native error (native "ArrayGetCell")
I filled array with numbers.
So 2 line here:
Code:
new random_number = random_num(0,ArraySize( g_aArray ));
new iRand = ArrayGetCell( g_aArray, random_number ); //This line got error.
Sincerely, krisztian2.
krisztian2 is offline
 



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 14:13.


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