#Problem how example int

1 messages · Page 1 of 1 (latest)

fresh grotto
#

example:

sage surge
#

Value is a string

fresh grotto
#

there word "key and value"

#

key = TowerCharacter

#

value = true and false - 0, 1 , 2 , etc

#

save there account playfab.

fresh grotto
#

no cant int?

sage surge
#

Those are simply component names. The value is type string

fresh grotto
#

Ah

#

maybe string?

#

hmm

#

i see.

#

moment checking

#

ProtectedString yeah is.

#

or also String

#

hmm i see

#

done and error lol

#

D:

sage surge
#

I said that you have to do some operations to convert from your string to int; no other way around it.

fresh grotto
#

or int

#

there public int x;

#

no cant have error

#

think hmm

sage surge
#

Value is a string, isStaff is a string, and x is not a string.

fresh grotto
#

i see think

spark pasture
#

It's not complicated. You're using a ProtectedString. They are using an int. If you want to use an int, you will need to convert from ProtectedString somehow

sage surge
#

Just Google how to convert from string to int or don't use a string in the first place (possibly follow the tutorial more closely if they aren't having the same issue as you)

fresh grotto
#

Hmm

#

remember example

#

bool ismulti = bool..

sage surge
#

The important keyword is Parse

spark pasture
#

Posting random things without the associated errors is meaningless to us

fresh grotto
#

Hmm i see.

fresh grotto
#

hmm

sage surge
#

int probably has a parse too.. Google

spark pasture
#

Understand what types you are dealing with and what types the methods you use return

fresh grotto
#

Okay is only int back no?

#

no need protect probably?

#

i see hmm

sage surge
#

This is if the value on the right-hand-side is really a string you'd simply parse it. Look up the docs for how to do so.

spark pasture
#

Posting random things without the associated errors is meaningless to us

fresh grotto
#

yeah yeah vertx.

#

okay done there

#

i see but maybe no cant protect

#

no problem have solution idea new.

sage surge
#

Be warned that exceptions could happen and will blow things up later; unimaginably (possibly unfixable - not easy to fix).