Raised This Month: $ Target: $400
 0% 

Passing ID's


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
stigma
Senior Member
Join Date: Mar 2005
Location: Denmark
Old 10-09-2006 , 15:27   Passing ID's
Reply With Quote #1

Hey..

If i have a function with 2 id's called "killer" & "killername", How is it then posible to pass the id's to another function?

Edit: Nevermind, found out - Sorry for this post..

Last edited by stigma; 10-09-2006 at 15:29.
stigma is offline
Send a message via MSN to stigma Send a message via Skype™ to stigma
schnitzelmaker
Senior Member
Join Date: Apr 2006
Location: HERE
Old 10-09-2006 , 16:30   Re: Passing ID's
Reply With Quote #2

Code:
function_1(){  new killerid=...  new attackerid=...  function_2(killerid,attackerid) } function_2(killerid,attackerid) {  //do something wth the ids }
__________________
schnitzelmaker is offline
schnitzelmaker
Senior Member
Join Date: Apr 2006
Location: HERE
Old 10-09-2006 , 16:34   Re: Passing ID's
Reply With Quote #3

or
Code:
function_1(){  new killerid=...  new attackerid=...  new data[2]  data[0] = killerid  data[1] = attackerid  set_task(0.1,"function_2",12345,data,2) } function_2() {  new id_1,id_2  id_1 = read_data(1)  id_2 = read_data(2)  //do something wth the ids }
__________________
schnitzelmaker is offline
Zenith77
Veteran Member
Join Date: Aug 2005
Old 10-09-2006 , 18:56   Re: Passing ID's
Reply With Quote #4

Are you stupid? This is a serious question. Setting a task just so you can pass parameters, god I don't even have a word for it. Answer: No, just do it the way the first way.
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
Reply



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

Forum Jump


All times are GMT -4. The time now is 04:57.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode