Skip to content

Wrong formating to "Vote Delay Minutes" when delay above 60s #1007

@PlayBoy31

Description

@PlayBoy31

delay formating.zip

Description
set sm_vote_delay above 60s, 900 for example

Problematic Code (or Steps to Reproduce)

Reply to command after CheckVoteDelay() when delay > 60 on basevotes.sp or funvotes.sp are wrong.

ReplyToCommand(client, "[SM] %t", "Vote Delay Minutes", delay % 60);

must be replaced by:

ReplyToCommand(client, "[SM] %t", "Vote Delay Minutes", (delay / 60) % 60);

otherwise, seconds are only displayed when its above minute ...

Issue is present on basevotes.sp and on funvotes.sp

fixed files attached to this issue

delay formating.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions