Float, String in return?
#1

Hi, I would like to know how you can through the 'return' variable 'float' and 'string'..

example:

GameMode:

Code:
new Name[150];
new Coords[3] = 0.0;

forward ExampleFunc(playerid);
public ExampleFunc(playerid)
	return Name[playerid];

forward ExampleFunc2(a);
public ExampleFunc2(a)
	return Coords[a];
Filterscript:

Code:
SendClientMessage(playerid, 0x000000AA, "The veh name: %s", CallRemoteFunction("ExampleFunc", "d", playerid));
SetPlayerPos(CallRemoteFunction("ExampleFunc2", "i", 0), CallRemoteFunction("ExampleFunc2", "i", 1), CallRemoteFunction("ExampleFunc2", "i", 2));
Unfortunately does not work..

How do you do?
Maybe you know some other way of communication between GM and FS


Please help.
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)