30.12.2009, 19:00
Lets say my calculations give me number 30 or over. How to make that pawno will print out "Good" .
if(value >= 30) return print("Good"); // greater or equal
if(value > 29) return print("Good"); // more than 29 is 30 or more
if(INTEGERNAME=30) {
printf("The integer is over 30 and so this is shown.");
printf("The integer is %s", INTEGERNAME);
}
|
Originally Posted by jameskmonger
Code:
if(INTEGERNAME=30) {
printf("The integer is over 30 and so this is shown.");
printf("The integer is %s", INTEGERNAME);
}
|
value = floatround(vHealth / 10);
GetVehicleHealth(vehicleid, vHealth);
value = floatdiv(vHealth, 10);
|
Originally Posted by wiilweer
Code:
value = floatround(vHealth / 10); |
floatround(value, method);
|
Originally Posted by SAWC™
Quote:
"=" should be "==" and it will only print if the integer == 30. If it's more it won't do anything. |