Jump to content

A way to get the return value of a function


Cassandra

Recommended Posts

Posted

There's no way as far as I know.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted (edited)

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

Edited by Guest

Owner of [HUN]Magyar Play Szerver 1.4, IP: 31.220.43.153:22003

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 ..!

" Keep Thinking Different . " - Steve Jops

--------------------

Don't send me PMs asking for help, I Won't reply !

Posted

You could use element data, but element data does lag too AFAIK.

"[...] If you don’t love it, if you’re not having fun doing it, you don’t really love it, you’re going to give up." - Steve Jobs, 2007

Posted

I want to use bandwidth but I don't want to use setElementData or another trigger function. Will it be possible to reference that variable?

Regards,

Cassandra - V:MP

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.

Regards,

Cassandra - V:MP

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.

Regards,

Cassandra - V:MP

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...