Save 2 arrays?
Hi guys. I have this and works
PHP Code:
Ty for help^^ |
Re: Save 2 arrays?
So, you ask after choose some from menu, menu not will close?
|
Re: Save 2 arrays?
Describe better what you are wanting to do because you currently aren't making much sense.
|
Re: Save 2 arrays?
For example, in that menu select AK47 and M4A1 to get them (both) in the next round.
Actually, if I select AK47 and then M4A1, I only will get M4A1 (the last option I choose) Sorry for my English xD |
Re: Save 2 arrays?
An easy method, but not very elegant, would be to have one array for each weapon. Is it even possible to have multiple primary weapons?
|
Re: Save 2 arrays?
Quote:
Mmh, I'll try that. |
Re: Save 2 arrays?
Another method is using bit fields, which could reduce memory usage by 33(every player representing one bit) times, or 'number of weapons'(every player having his own bit field of weapons, instead of an array) times. Search for bit fields, bit-wise operators, etc. on the forum/Google to learn more about it, there are few great tutorials on the subject on AlliedModders.
|
Re: Save 2 arrays?
Quote:
Honestly, I prefer tutorials instead of get the code xD |
| All times are GMT -4. The time now is 17:35. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.