Raised This Month: $ Target: $400
 0% 

Mapchooser problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sidewinder
Senior Member
Join Date: Aug 2006
Old 11-04-2007 , 01:52   Mapchooser problem
Reply With Quote #1

Hey. I have a customized mapchooser which is combined with a frag limit and rock the vote. -- Once a person has 45 kills, the map menu comes up and people vote for the next map. When a person gets 50 kills, the map will change to whatever the popular vote was.

However, the plugin runs from three different map.ini files: maps.ini , special.ini , empty,ini. -- The idea is for the greater maps to be listed in maps.ini, and the lesser but occasionally fun maps to be listed in special.ini.

When the server is empty or occupied with only bots, the next map will randomly change to whatever's in empty.ini. -- When there are people playing and a person gets 45 kills, the map menu that comes up has 4 different choices. The first three choices are randomly picked from maps.ini; and the fourth choice is randomly picked from special.ini

The problem is when people are voting for the next map. The #4 choice will be a random map from special.ini, but if you select it, then it will actually vote for a different map. And, the different map is ALWAYS the fourth map listed from special.ini.

_________

Example

maps in maps.ini
de_dust
de_dust2
de_inferno
cs_office
cs_assault

maps in special.ini
fy_snow
fy_cold
fy_iceworld
aim-ak_colt

A person gets 45 kills, and the vote menu comes
1. de_dust2
2. cs_office
3. de_dust
4. fy_cold

If I select fy_cold, then it will actually pick aim-ak_colt.

_________

I believe the problem is either between lines 260-278 OR 341-352

I've been trying all kinds of things for hours ... but had no luck. Any help would be appreciated.
Attached Files
File Type: sma Get Plugin or Get Source (mapchooser2.sma - 820 views - 15.4 KB)
__________________
Sidewinder is offline
Send a message via AIM to Sidewinder Send a message via MSN to Sidewinder
Sidewinder
Senior Member
Join Date: Aug 2006
Old 11-06-2007 , 23:09   Re: Mapchooser problem
Reply With Quote #2

anyone?
__________________
Sidewinder is offline
Send a message via AIM to Sidewinder Send a message via MSN to Sidewinder
Vet
Veteran Member
Join Date: Jul 2006
Location: I|O wa
Old 11-07-2007 , 00:39   Re: Mapchooser problem
Reply With Quote #3

I only quickly scanned your code, but I'm inclined to think the problem is in either the checkVotes or countVote routine.
__________________
=====================================
- My Plugins -
=====================================
Vet is offline
Send a message via MSN to Vet
Reply



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 19:22.


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