NT Script: Difference between revisions

7 bytes removed ,  15:58, 25 April 2014
Division isn't broken
imported>Oranges
m (Add math operators, including a note about division)
imported>Oranges
(Division isn't broken)
Line 380: Line 380:


=== Chat calculator ===
=== Chat calculator ===
A simple chat calculator, divide doesn't work cause of some bug with the / operator.<br>
A simple chat calculator.<br>
Type "/calc 1+1" in chat and watch the magic happen.
Type "/calc 1+1" in chat and watch the magic happen. NB: division is not implemented due to budget cuts.
  $expld1 = explode($content, " ");
  $expld1 = explode($content, " ");
  if(at($expld1, 1) ==  "/calc")
  if(at($expld1, 1) ==  "/calc")
Anonymous user