[Help] Calling function via string
#1

How can I call function via string.

I have "xyz" saved at file like "xyz = 55.446,4244.4148,49974.54554", how i can call it in some function (Like SetPlayerPos)

Here is some examples;

Code:
string_with_this_floats = "55.446,4244.4148,49974.54554";
format(string,128,"%s",string_with_this_floats);
CallSomeFunction("SetPlayerPos", "fff",string);
or

Code:
string_with_this_floats = "55.446,4244.4148,49974.54554";
format(string,128,SetPlayerPos(playerid,%s),string_with_this_floats);
CallSomeFunction(string);
Or any way, just help
Reply


Messages In This Thread
[Help] Calling function via string - by BloodMaster - 12.10.2011, 16:42
Re: [Help] Calling function via string - by IstuntmanI - 12.10.2011, 16:53
Re: [Help] Calling function via string - by BloodMaster - 12.10.2011, 17:00

Forum Jump:


Users browsing this thread: 3 Guest(s)