Raised This Month: $ Target: $400
 0% 

Set all array to true


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
fmfs10
Senior Member
Join Date: Mar 2009
Location: Brasil
Old 01-07-2011 , 11:01   Set all array to true
Reply With Quote #1

Hello! I'm trying to do a plugin with this array:

PHP Code:
new bool:g_playerFirstEnter_Menu[33][MAX_PAGES_MENU-1// Where 33 is the id of player and MAX_PAGES_MENU a define that sets max pages of a menu 
I tried to set every slot to true. But I don't know exactly how to do this, so I tried 2 ways:

PHP Code:
//client_putinserver(id)...
for(new 0MAX_PAGES_MENU-1i++)
    
g_playerFirstEnter_Menu[id][i] = true 
and:

PHP Code:
new bool:g_playerFirstEnter_Menu[33][MAX_PAGES_MENU-1] = {true, ...} 
But none of them works... What can I do?

Last edited by fmfs10; 01-07-2011 at 11:10.
fmfs10 is offline
 


Thread Tools
Display Modes

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 02:00.


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