Raised This Month: $ Target: $400
 0% 

Lock Menu Keys


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
maqi
Senior Member
Join Date: Apr 2017
Location: Serbia
Old 07-18-2018 , 03:12   Re: Lock Menu Keys
Reply With Quote #1

Explain what happens, because it's the right solution ( If we are thinking about the same thing )

Edit: Are you sure
Code:
g_vote[0] == 0
Is the right condition to check for, I guess it would be something like
Code:
 !g_vote[index]
Not sure since i didn't see the code and don't know what it does.
__________________
stuff

Last edited by maqi; 07-18-2018 at 03:24.
maqi is offline
wAyz
Senior Member
Join Date: Feb 2010
Location: Germany
Old 07-18-2018 , 03:37   Re: Lock Menu Keys
Reply With Quote #2

Quote:
Originally Posted by maqi View Post
Explain what happens, because it's the right solution ( If we are thinking about the same thing )

Edit: Are you sure
Code:
g_vote[0] == 0
Is the right condition to check for, I guess it would be something like
Code:
 !g_vote[index]
Not sure since i didn't see the code and don't know what it does.
yes it is, because the menu keys go grey right after i lock in a vote.

Code:
if(g_vote[0] == 0)
{
	charCnt += formatex(voteStatus[charCnt], sizeof(voteStatus)-1-charCnt, "^n%s%i. \w%s%s", CLR_RED, choiceIdx+1, g_mapChoice[choiceIdx], voteTally);
	keys |= (1<<choiceIdx);
}
else
charCnt += formatex(voteStatus[charCnt], sizeof(voteStatus)-1-charCnt, "^n%s%i. \d%s%s", CLR_RED, choiceIdx+1, g_mapChoice[choiceIdx], voteTally);
It should work like inteded, but there's something else making the menu work again after i lock in a vote. Gotta figure out what exactly.

Last edited by wAyz; 07-18-2018 at 03:41.
wAyz is offline
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 12:32.


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