AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   (syntax?) question related to my vote plugin. (https://forums.alliedmods.net/showthread.php?t=309398)

wAyz 07-24-2018 12:27

(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-- : 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." : "");

klippy 07-24-2018 12:39

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.