Raised This Month: $ Target: $400
 0% 

Solved No entries inside an array


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 09-13-2018 , 04:54   No entries inside an array
Reply With Quote #1

How do I check whether there's no entries inside a cellarray? I need to show the player an error log if the array is empty.

Is this correct?
PHP Code:
    new iArraySize ArraySizeg_aCustomSpawnPoints );
    
    if( ! 
iArraySize )
    {
        
log_amx"[CSBR] No Custom Origins Found" );
        return 
0;
    } 
If we use ArrayPushArray, does ArraySize go from -1 to 0 or from 0 to 1?
__________________

Last edited by edon1337; 09-13-2018 at 15:27.
edon1337 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 07:35.


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