Set all array to true
Hello! I'm trying to do a plugin with this array:
PHP Code:
PHP Code:
PHP Code:
|
Re: Set all array to true
You can use it as false lol... its a boolean. Just call it new bool:g_playerNotFirstEnter_Menu[33][MAX_PAGES_MENU-1]
|
Re: Set all array to true
Yeah but I need it to start already true... All the slots. Bools starts as false
And I think it's unnecessary set each slot to one by one. There is no way to set all the slots to true in one time? |
Re: Set all array to true
I am just saying that by doing that its less optimized code. Just use it as defaulted to 0 cuz man a boolean only has 2 values 1 and 0 so it doesnt change anything in ur code. I suggest u use it as false from the start never start as true.
PHP Code:
|
Re: Set all array to true
I tried again the putinserver thing and it worked now. LOL
I don't now why o.O Thanks anyway... I discovered a new think now ^^ |
Re: Set all array to true
try
Code:
public client_putinserver(id) |
| All times are GMT -4. The time now is 02:00. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.