Accessing floats from a different script
#7

The problem is that CallRemoteFunction don't know the correct tag and treats the float as integer

To save memory and the problem with the tag you should either create a function or use native

With native this could look like
PHP код:
// Float: GetPlayerHealthEx(playerid) - returns current health
native Float_GetPlayerHealthEx(func[] = "GetPlayerHealthEx"form[] = "i", {Float_}: ...) = CallRemoteFunction;
#define GetPlayerHealthEx( _GetPlayerHealthEx(_,_, 
Reply


Messages In This Thread
Accessing floats from a different script - by Stinged - 05.06.2016, 13:09
Re: Accessing floats from a different script - by Konstantinos - 05.06.2016, 13:28
Re: Accessing floats from a different script - by Spmn - 05.06.2016, 13:34
Re: Accessing floats from a different script - by Stinged - 05.06.2016, 13:47
Re: Accessing floats from a different script - by IFilip - 05.06.2016, 13:51
Re: Accessing floats from a different script - by Stinged - 05.06.2016, 14:02
Re: Accessing floats from a different script - by Nero_3D - 05.06.2016, 15:15
Re: Accessing floats from a different script - by Stinged - 05.06.2016, 17:35
Re: Accessing floats from a different script - by Nero_3D - 05.06.2016, 19:12
Re: Accessing floats from a different script - by Stinged - 05.06.2016, 19:29

Forum Jump:


Users browsing this thread: 2 Guest(s)