Raised This Month: $51 Target: $400
 12% 

(syntax?) question related to my vote plugin.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wAyz
Senior Member
Join Date: Feb 2010
Location: Germany
Old 07-24-2018 , 12:27   (syntax?) question related to my vote plugin.
Reply With Quote #1

Hello,

I was wondering how to return "nothing" instead of 0 in this case for my vote plugin.

Code:
isVoteEnding ? countdown-- : 0
Like it's literally displaying "0" on my menu.

Code:
formatex(menuDisplay, sizeof(menuDisplay)-1, "%s^n^n%s\r%i%s", voteStatus, isVoteEnding ? "\dtime remaining: " : "", isVoteEnding ? countdown-- : 0, isVoteOver ? "\dThe vote is over." : "");

Last edited by wAyz; 07-24-2018 at 12:30.
wAyz is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 07-24-2018 , 12:39   Re: (syntax?) question related to my vote plugin.
Reply With Quote #2

Convert countdown-- to a string with num_to_str and use that like you did with "\dtime remaining: ".
__________________
klippy 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 05:16.


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