Float, String in return?
#5

Quote:
Originally Posted by PowerPC603
View Post
CallRemoteFunction only returns integers. I've tested this too and struggled with it, until I found a work-around:
Quote:
Originally Posted by iPLEOMAX
View Post
Public functions can't return Strings, Floats..
Wrong ─ either public functions and CallRemote/LocalFunction CAN return floats. For strings, you can use a global string-variable or, properties to share data through all scripts.
pawn Code:
foo(Float: fVal); public foo(Float: fVal)
{
    return _: fVal;
}
printf("%f", CallRemoteFunction("foo", "f", 12.345678));
Reply


Messages In This Thread
Float, String in return? - by zielu001 - 03.10.2011, 16:34
Re: Float, String in return? - by Pharrel - 03.10.2011, 16:38
Re: Float, String in return? - by iPLEOMAX - 03.10.2011, 17:05
Re: Float, String in return? - by PowerPC603 - 03.10.2011, 17:46
Re: Float, String in return? - by RyDeR` - 03.10.2011, 17:55
Re: Float, String in return? - by iPLEOMAX - 04.10.2011, 20:24

Forum Jump:


Users browsing this thread: 1 Guest(s)