SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 04/03/2013, 11:32 AM   #1
EV007
Big Clucker
 
EV007's Avatar
 
Join Date: Jul 2012
Posts: 134
Reputation: 10
Default strings in custom funcs.

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.
EV007 is offline   Reply With Quote
Old 04/03/2013, 11:56 AM   #2
Scrillex
High-roller
 
Scrillex's Avatar
 
Join Date: Jan 2012
Location: In my dreams!
Posts: 1,226
Reputation: 31
Default Re: strings in custom funcs.

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..
__________________
If you need something just ask!

Scrillex is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
When using custom objects in custom.img gta crashes on startup AMEENAMEEN Server Support 4 03/06/2012 02:29 AM
Need help with strings. xOFxK1LLER Scripting Help 2 30/04/2012 02:11 PM
Custom textdraw strings for players Rokzlive Scripting Help 2 15/01/2012 02:09 AM
CUSTOM.img and CUSTOM.ide aren't working Kwarde Client Support 6 30/08/2011 06:32 AM
asin, acos, atan, atan2 funcs? xomka Help Archive 1 28/10/2009 08:35 AM


All times are GMT. The time now is 04:01 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.