MathsResult is an integer, you can't compare an integer to a string (text from OnPlayerText). To compare them, convert the string to an integer with strval and compare:
pawn Код:
if(strval(text)== MathsResult)// strval returns an intenger which CAN be compared to MathsResult, another integer.