Advertisement
Guest User

Untitled

a guest
Sep 4th, 2015
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. [19:46:52] Anthony [Technoblazed]: if (command.equalsIgnoreCase("quote")) {
  2. if (!$.isModv3(sender, event.getTags()))
  3. return;
  4. else {}
  5. }
  6. else {
  7. if (argsString.length() > 0) {
  8. num = parseInt(argsString);
  9. } else {
  10. num = $.rand(num_quotes);
  11. }
  12. }
  13. if (isNaN(num_quotes) || num_quotes == 0) {
  14. $.say("There are no quotes at this time");
  15. return;
  16. }
  17. if ($.inidb.get("quotes", "quote_" + num) == null) {
  18. $.say("There are only " + (num_quotes) +
  19. " quotes right now! Remember that quotes are numbered from 0 to " +
  20. (num_quotes - 1) + "!");
  21. } else {
  22. $.say("#" + num + ": " + $.inidb.get("quotes", "quote_" + num));
  23. }
  24. }
  25.  
  26.  
  27. is erroring
  28. There are only 1 quotes right now! Remember that quotes are numbered from 0 to 0!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement