Jump to content

A way to get the return value of a function


Cassandra

Recommended Posts

Posted
Send back the teturned value to the client/server with an another triggerClient/ServerEvent.

Could work, But i don't recommend it ..

Because adding to much triggers make lag ..!

Posted

Element data and event triggering are the only general ways to send the data between server and client. What's wrong about using those functions?

Posted
Element data and event triggering are the only general ways to send the data between server and client. What's wrong about using those functions?

Alright seem like I have to use that anyway. I have a problem though. Does anyone know why setAccountData doesn't set floating values? My player's position is a bit messed up for that.

Posted

I'm not sure what you mean. The only type you can use as account data is string. It all depends on how you convert the values between strings and other data types.

Posted
I'm not sure what you mean. The only type you can use as account data is string. It all depends on how you convert the values between strings and other data types.

setAccountData doesn't take in decimal values. It coverts them to whole number.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...