15.03.2011, 13:08
I have a long number, 674583948
I tried to use modifiers for variable but failed. When i tried to assign it directly to a variable
But it displayed some other number when i printed it. Then I tried to assign it to a string.
Then I tried to compare it with 777 and check if that number is equal using
But the comparison always returns 0 which makes it enter the if condition.
How do I compare the numbers?
I tried to use modifiers for variable but failed. When i tried to assign it directly to a variable
pawn Код:
new var = 674583948;
pawn Код:
new str[15];
format(str, 15, "674583948");
pawn Код:
if(!strcmp(str, "777", true))
{
//blah blah code here....
}
How do I compare the numbers?