SA-MP Forums Archive
strings in custom funcs. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: strings in custom funcs. (/showthread.php?tid=420291)



strings in custom funcs. - EV007 - 04.03.2013

hey guys, could someone help me out with this? I'm trying to create a function i.e:

ApplyObject(playerid,"",params...);

In the quotes, I will be using already created functions and the params would be the parameters of the function inside quotes. So it would be something like

public object1(x,y,z)
{
...

ApplyObject(playerid,"object1",x,y,z);

public object2(x,y,z,rx,ry,rz)
{
...

ApplyObject(playerid,"object2",x,y,z,rx,ry,rz);

If someone still doesn't understand, I want the params of the applyobject function to differ on functions used inside quotes.


Re: strings in custom funcs. - Scrillex - 04.03.2013

why you just dont use..
enum Object
x,y,z,rx,ry,rz
etc etc etc
;
ApplyObject(playerid,"object",Object[1],Objject[2]etc);
And then forward it as public..