Raised This Month: $ Target: $400
 0% 

Voteban menu button doesn't show


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GarbageBox
Senior Member
Join Date: Feb 2010
Old 01-06-2011 , 08:09   Voteban menu button doesn't show
Reply With Quote #1

I am using the Alka's voteban plugin.
But I find some problem with it.
Just like what the image show
below no.7 is nothing show, it should be 8 players and the next page words.
But although there is no words show, the no.8, 9 and 0 is still work when I press it.
What's the problem
Attached Thumbnails
Click image for larger version

Name:	20110106 210652.jpg
Views:	231
Size:	19.7 KB
ID:	80229  
Attached Files
File Type: sma Get Plugin or Get Source (voteban.sma - 638 views - 7.3 KB)
__________________
You can be a SUPER coder but you Haven't to say such as "stupid, etc." words to the others

Last edited by GarbageBox; 01-06-2011 at 08:13.
GarbageBox is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 01-06-2011 , 08:12   Re: Voteban menu button doesn't show
Reply With Quote #2

Is this the original source? Why aren't you posting in the plugin thread? Why isn't there at least a link to the plugin thread?
SnoW is offline
Send a message via MSN to SnoW
GarbageBox
Senior Member
Join Date: Feb 2010
Old 01-06-2011 , 09:09   Re: Voteban menu button doesn't show
Reply With Quote #3

This is not the original code.
It is edited by fysiks of my request no log and no voteban reason.
Edited: http://forums.alliedmods.net/showthread.php?t=139875
__________________
You can be a SUPER coder but you Haven't to say such as "stupid, etc." words to the others
GarbageBox is offline
Old 01-06-2011, 09:53
GarbageBox
This message has been deleted by GarbageBox. Reason: coz of the network problems reply twice times
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-06-2011 , 18:12   Re: Voteban menu button doesn't show
Reply With Quote #4

I'm guessing that it's because you are over the character limit. If player names are shorter than you won't have the problem. Or, to make it safe for both short and long names you will need to truncate all the names to a fixed length.

Or, I think, because it is not the new style menu you can just make the array szMenu[] declared on line 101 longer (the 256 to something bigger). That is if there is not a limit set by the HL engine for displaying menus.
__________________

Last edited by fysiks; 01-06-2011 at 18:15.
fysiks is offline
GarbageBox
Senior Member
Join Date: Feb 2010
Old 01-07-2011 , 03:44   Re: Voteban menu button doesn't show
Reply With Quote #5

Thank, fixed now.
It's the szMenu lead the problem out
__________________
You can be a SUPER coder but you Haven't to say such as "stupid, etc." words to the others
GarbageBox is offline
bumctik
Junior Member
Join Date: Oct 2010
Location: Russian Federation, NSK
Old 02-04-2011 , 16:15   Re: Voteban menu button doesn't show
Reply With Quote #6

I`m trying using the Alka's voteban plugin
in my Half-life 1 server
but
when i say voteban
plugins menu Appears menu with errors in the coding probably or that it (see attach)

After the player was banned the menu it doesn't disappear normally?
And the last - in logs is written as though the player banned itself
Code:
L 02/05/2011 - 02:59:57: Log file started (file "valve\addons\amxmodx\logs\voteban\05-02-2011.log") (game "valve") (amx "1.8.1.3746")
L 02/05/2011 - 02:59:57: Player 'Bossy_Ozzy' voted for banning 'Bossy_Ozzy' for: 
L 02/05/2011 - 03:11:21: Player 'Blood_Splatter_Analyst' voted for banning 'Blood_Splatter_Analyst' for:  cheat
Attached Thumbnails
Click image for larger version

Name:	hl 2011-02-05 03-11-26-92.jpg
Views:	206
Size:	73.7 KB
ID:	81753  
__________________
bumctik is offline
Send a message via ICQ to bumctik Send a message via Skype™ to bumctik
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-04-2011 , 18:45   Re: Voteban menu button doesn't show
Reply With Quote #7

Quote:
Originally Posted by bumctik View Post
I`m trying using the Alka's voteban plugin
in my Half-life 1 server
but
when i say voteban
plugins menu Appears menu with errors in the coding probably or that it (see attach)

After the player was banned the menu it doesn't disappear normally?
And the last - in logs is written as though the player banned itself
Code:
L 02/05/2011 - 02:59:57: Log file started (file "valve\addons\amxmodx\logs\voteban\05-02-2011.log") (game "valve") (amx "1.8.1.3746")
L 02/05/2011 - 02:59:57: Player 'Bossy_Ozzy' voted for banning 'Bossy_Ozzy' for: 
L 02/05/2011 - 03:11:21: Player 'Blood_Splatter_Analyst' voted for banning 'Blood_Splatter_Analyst' for:  cheat
It will only display correctly in games that are able to use colored menus. What game are you playing?
__________________
fysiks is offline
bumctik
Junior Member
Join Date: Oct 2010
Location: Russian Federation, NSK
Old 02-04-2011 , 23:41   Re: Voteban menu button doesn't show
Reply With Quote #8

vale - Half life 1 death match
could you help me to correct the plug-in that it worked correctly?
__________________
bumctik is offline
Send a message via ICQ to bumctik Send a message via Skype™ to bumctik
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-05-2011 , 01:20   Re: Voteban menu button doesn't show
Reply With Quote #9

Quote:
Originally Posted by bumctik View Post
I`m trying using the Alka's voteban plugin
in my Half-life 1 server
but
when i say voteban
plugins menu Appears menu with errors in the coding probably or that it (see attach)
Fixed. See link below.

Quote:
Originally Posted by bumctik View Post
After the player was banned the menu it doesn't disappear normally?
Correct. You have to select option 0 to exit.

Quote:
Originally Posted by bumctik View Post
And the last - in logs is written as though the player banned itself
Code:
L 02/05/2011 - 02:59:57: Log file started (file "valve\addons\amxmodx\logs\voteban\05-02-2011.log") (game "valve") (amx "1.8.1.3746")
L 02/05/2011 - 02:59:57: Player 'Bossy_Ozzy' voted for banning 'Bossy_Ozzy' for: 
L 02/05/2011 - 03:11:21: Player 'Blood_Splatter_Analyst' voted for banning 'Blood_Splatter_Analyst' for:  cheat
Fixed. See link below.

http://forums.alliedmods.net/showpos...2&postcount=41

You will want voteban_nocolor.
__________________
fysiks is offline
bumctik
Junior Member
Join Date: Oct 2010
Location: Russian Federation, NSK
Old 02-06-2011 , 10:32   Re: Voteban menu button doesn't show
Reply With Quote #10

voteban_nocolor didn`t working



Plugin file open error
__________________
bumctik is offline
Send a message via ICQ to bumctik Send a message via Skype™ to bumctik
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 02:07.


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