[QUESTION] Possible to use 1 variable on 2 uses?
#5

Quote:
Originally Posted by pds2012
Посмотреть сообщение
@ HimSelf i know those, im just asking if its possible so i could use less variables

@Roko_Foko thanks, for the info
Let me explain why it wouldnt work.

Each of those functions return the id of the check point or pickup created, so if you have the variable pie, and assign it to a function, what ever the function returns pie will become, and for later use for manipluation of an item, IE deletion, you requre the id, so if you use the same variable and assign it to a different function the value of pie would change and it would no longer be the value for the other one, thus you couldn't delete it or what ever else by using the variable pie.
Reply


Messages In This Thread
[QUESTION] Possible to use 1 variable on 2 uses? - by Patrick - 13.02.2013, 20:28
Re: [QUESTION] Possible to use 1 variable on 2 uses? - by Roko_foko - 13.02.2013, 20:33
Re: [QUESTION] Possible to use 1 variable on 2 uses? - by HimSelf - 13.02.2013, 20:39
Re: [QUESTION] Possible to use 1 variable on 2 uses? - by Patrick - 13.02.2013, 20:43
Re: [QUESTION] Possible to use 1 variable on 2 uses? - by PrawkC - 13.02.2013, 20:51
Re: [QUESTION] Possible to use 1 variable on 2 uses? - by new121 - 13.02.2013, 20:55

Forum Jump:


Users browsing this thread: 1 Guest(s)