can someone say me what this part doing?
Code:
new bool:bEnabled = StringToInt(newValue) ? true : false
more big part of code...
Code:
public ConVarChanged_Color(Handle:convar,const String:oldValue[],const String:newValue[]) {
if(!GetConVarBool(g_hCvar_Enable)) {
return
}
new bool:bEnabled = StringToInt(newValue) ? true : false
if(bEnabled != (StringToInt(oldValue) ? true : false)) {
ColorBlocks(!bEnabled)
}
}
as i understand... it creating new boolean named bEnabled, then making from string to Integer (newValue)... and then...
Tnx for help +)