28.03.2013, 18:08
syntax
Normal if - else
with ternary operator
i get this warning
what i wrong ?
Code:
condition ? true : false
pawn Code:
if(Day < 21)
{
SetWeather(WinterWeather[winterrand]);
}
else
{
SetWeather(SpringWeather[springrand]);
}
pawn Code:
(Day < 21) ? SetWeather(WinterWeather[winterrand]) : SetWeather(SpringWeather[springrand]);
Code:
warning 215: expression has no effect