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 , 04:02   Re: Lock Menu Keys
Reply With Quote #1

PHP Code:
if(g_vote[0] == 0)
charCnt += formatex(voteStatus[charCnt], sizeof(voteStatus)-1-charCnt"^n%s%i. \w%s%s"CLR_REDchoiceIdx+1g_mapChoice[choiceIdx], voteTally);
else
charCnt += formatex(voteStatus[charCnt], sizeof(voteStatus)-1-charCnt"^n%s%i. \d%s%s"CLR_REDchoiceIdx+1g_mapChoice[choiceIdx], voteTally);
keys |= (1<<choiceIdx); 
adding keys to the bitsum is not under the if/else statement, it's outside of it. Therefore it will always be set, the only thing that changes is the color \w to \d ( put it in the curly brackets together under the right condition )
__________________
stuff

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

Quote:
Originally Posted by maqi View Post
PHP Code:
if(g_vote[0] == 0)
charCnt += formatex(voteStatus[charCnt], sizeof(voteStatus)-1-charCnt"^n%s%i. \w%s%s"CLR_REDchoiceIdx+1g_mapChoice[choiceIdx], voteTally);
else
charCnt += formatex(voteStatus[charCnt], sizeof(voteStatus)-1-charCnt"^n%s%i. \d%s%s"CLR_REDchoiceIdx+1g_mapChoice[choiceIdx], voteTally);
keys |= (1<<choiceIdx); 
adding keys to the bitsum is not under the if/else statement, it's outside of it. Therefore it will always be set, the only thing that changes is the color \w to \d ( put it in the curly brackets together under the right condition )
Oh I sent you the unedited file. it's like this right now.
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);
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