Raised This Month: $ Target: $400
 0% 

Help|Variables


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
e12harry
Member
Join Date: Apr 2010
Old 09-20-2011 , 10:46   Re: Help|Variables
Reply With Quote #2

I would say that the second one is chars.
PHP Code:
new gVariable [32] [33
means that you can store32 items (strings) and each can have up to 32 chars (if you wans to store strings, othevice you can store 33 numbers).
For example you can store player names:
PHP Code:
new maxPlayers get_maxplayers();
    
    for(new 
i=1;i<maxPlayers;i++){
        if(
is_user_connected(i)){
            
get_user_name(igVariable[i], 32);
        }
    } 
e12harry 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 19:40.


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