Map menu with fixed map in every map.
1 Attachment(s)
I've written some basic code.
Yet I found out that every time when I say rtv it will be different map names. How can I make them become fixed in the beginning of each map? Can anyone fix the bug? It print me everything in the maps.ini Code:
#include <amxmodx> |
Re: Map menu with fixed map in every map.
I don't understand your issue. Also, you should only read the file once if the map file is not expected to change mid-game. You should look how mapchooser does it and use something more similar to that because your current method is way overkill (and might be the cause of your problem).
|
Re: Map menu with fixed map in every map.
Okay, I will look mapchooser later.
How can I in each map beginning randomly get 5 maps and make it become regular in the menu? |
Re: Map menu with fixed map in every map.
I think Exolent has a function to get random numbers without repeating. I would probably use that and use only those indexes.
|
Re: Map menu with fixed map in every map.
PHP Code:
|
Re: Map menu with fixed map in every map.
Quote:
Can you tell more detail about it and I update a little of my code in #1. |
Re: Map menu with fixed map in every map.
Quote:
See my tutorial about getting random values from an array. |
Re: Map menu with fixed map in every map.
Quote:
I had watch your tutorial's. It seems very difficult to me:shock: |
Re: Map menu with fixed map in every map.
Quote:
You basically want to set up all values you want in an array. Then, as you select values, delete them from the array. Code:
|
Re: Map menu with fixed map in every map.
Quote:
|
| All times are GMT -4. The time now is 03:23. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.