Maths result
#1

Fixed
Reply
#2

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.
strcmp is used to compare strings only...
Reply
#3

Thank you Miguel for the information and help!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)