(syntax?) question related to my vote plugin.
Hello,
I was wondering how to return "nothing" instead of 0 in this case for my vote plugin. Code:
isVoteEnding ? countdown-- : 0Code:
formatex(menuDisplay, sizeof(menuDisplay)-1, "%s^n^n%s\r%i%s", voteStatus, isVoteEnding ? "\dtime remaining: " : "", isVoteEnding ? countdown-- : 0, isVoteOver ? "\dThe vote is over." : ""); |
Re: (syntax?) question related to my vote plugin.
Convert countdown-- to a string with num_to_str and use that like you did with "\dtime remaining: ".
|
| All times are GMT -4. The time now is 12:18. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.