If anyone can figure out why this formula won't work on Graal.
http://en.wikipedia.org/wiki/Quadrat...dratic_formula
PHP Code:
//#CLIENTSIDE
function onPlayerChats()
{
if (player.chat == "/quad")
{
Quad();
}
}
function Quad()
{
temp.a = 5;
temp.b = 27;
temp.c = 10;
temp.x1 = (-temp.b + ((temp.b*temp.b-4*temp.a*temp.c)^0.5))/2*temp.a;
temp.x2 = (-temp.b - ((temp.b*temp.b-4*temp.a*temp.c)^0.5))/2*temp.a;
player.chat = "Solution is:" SPC temp.x1 SPC temp.x2;
}