#help setactive
1 messages · Page 1 of 1 (latest)
@gritty echo here write
wait explain:
there is :
therre is
phpyadmin
example there setactive(false and true)
and write phpyadmin auto login (false and true)
or
think
so what is your confusion?
phpyadmin.
Not confuse, but ya experience little
i know but other "text" work alerts.
?
WarnAlerts = false example
only string write phpyadmin false and true
or also 0 and 1
bool x = true;
WarnAlerts.SetActive(x);```^This is good. This works
```cs
string x = "true";
WarnAlerts.SetActive(x);```^This is bad. Not work.
there bool x
think is number 0 and 1?
correct?
ah no no "bool x = true;" no no but only text there hasve string alertswarn
but hard think,
more or less, but not really relevant. ¯_(ツ)_/¯
i know and hard think wait
and other help who.
AlertsText.text = bl_DataBase.Instance.LocalUser.MessageAlerts;
there is working
only is text
and other is gameobject (false and true for setactive)
yeah
i see "GameObject WarnAlerts;" yes but only is alerts
there
enable and disable
why not make it public bool AlertsWarn
ok wait check
test
think
Ah
i see.
do not work
but is data for phpyadmin
then you just need to convert the string to a bool
hmm
AlertsWarn = string.Equals(data["alertsWarn"], "true", StringComparison.InvariantCultureIgnoreCase);
there is no?
Ah
forget
yes is data
ok wait
fixed
ok think wait test
@feral tangle error
AlertsWarn = string.Equals(data["alertsWarn"], "true", StringComparison.InvariantCultureIgnoreCase);
do not no work
xd
think "StringComparison.InvariantCultureIgnoreCase" incorrect.
AlertsWarn = string.Equals(data["alertsWarn"], "true");
maybe try.
nah no work
rip.
public string AlertsWarn;