Giter VIP home page Giter VIP logo

sm-rl-quiz's Introduction

sm-rl-quiz's People

Contributors

azalty avatar blueberryy avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

sm-rl-quiz's Issues

Timer Quiz

It would be really cool if the plugin also had a timer option, without doing it per round but from time to time defined by a cvar.

rl_quiz_onroundstart_reward 1 doesn't work

Describe the bug
rl_quiz_onroundstart_reward 1 doesn't work as intended, as it runs the command sm_givejetons instead of sm_givecredits

Other infos
Will be fixed soon

multipleAnswers string array isn't cleared, allowing wrong answers

Describe the bug
If a question is asked, we can answer with a wrong answer and it will work

To Reproduce

  1. Have a previous question with multiple answer
  2. Have a new question with less answers than the previous one
  3. Reply with the last answer in the list

Additional context
This happens because the multipleAnswers string array is not cleared:

Quiz 1 (question1, has 3 answers):
multipleAnswers[0] = "something"
multipleAnswers[1] = "this"
multipleAnswers[2] = "that"

Quiz 2 (question2, has 1 answer):
multipleAnswers[0] = "csgo"

We can answer "csgo", "this" or "that" and it will work.

Fix:

for (int i; i < 15; i++)
{
	multipleAnswers[i][0] = '\0';
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.