Voting menu won't display.
Hey guys.
I made a PUG mode and a part of my PUG mode is the map voting, for some wierd reason when it reaches to this part of code (Public StartVote()) (and im sure it reaches to this part of code cuz i did before that it will print something if it reaches there.) it does nothing, and it doesn't display the menu it should display. Anybody finds bugs in this? PHP Code:
|
Re: Voting menu won't display.
PHP Code:
|
Re: Voting menu won't display.
Thanks, I'll test it now. Can you tell me what you fixed and why did it not work with my code?
|
Re: Voting menu won't display.
1. Recursive task loop from getmaps() and StartVote()
2. Changed getmaps() to be direct call to have maps ready for vote 3. Chooses 4 maps while maps are available to be chosen 4. Only add items to the menu that exist 5. Stop loop if maps list is completely filled 6. First loop reads to end of file, second loop would give no results to add to maps list 7. Remove new line character at end of line 8. Only add map if it exists 9. Close file after using it PHP Code:
|
Re: Voting menu won't display.
Now I have another question.
Your fix works good, but after map vote is done, the server crashes.... I'll send you the public where it goes after ending the vote, tell me why is that.. PHP Code:
|
Re: Voting menu won't display.
That's an ugly loop.
PHP Code:
|
Re: Voting menu won't display.
Thanks that works too, thanks alot Exolent :)
Now I have one more question. I used an .ini file that the pug will read from to spot if its after map vote or not, so after plugin_precache it wont do "type .rdy" again even if it was already and its after vote map, so it'll spot that if there's a specific written character I set, it'll start teams vote. The problem is, The teams vote doesnt work (teams vote = how the teams will be organized), I checked console and it says "Vote how you would like the teams to be organized" and then just says "Teams will be kept as they are", like it decides by itself the first option, and it doesnt even display the menu... Here is the code: PHP Code:
|
Re: Voting menu won't display.
PHP Code:
|
Re: Voting menu won't display.
Yeah I know the EndTeamsVote public looks ugly, but it doesnt even display a menu of how would you like the teams to be organized and just gives the answer as "teams will be kept as they are, why?
|
Re: Voting menu won't display.
Your other problem is here:
PHP Code:
|
| All times are GMT -4. The time now is 00:51. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.