Raised This Month: $ Target: $400
 0% 

Function question


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Kazalu
Senior Member
Join Date: Dec 2013
Location: Romania
Old 11-16-2014 , 03:51   Function question
Reply With Quote #1

I am wondering if variables keep their values from one function to another?
I mean if I have like that:
<<
new var;

public func1()
{
var = 2;
}

public func2()
{
var = var * 2;
return var;
}
>>

the variable returned will be 4 or will it be 0( like it would in other languages like C++ )?

2nd question: how can I detect a player's death?

Last edited by Kazalu; 11-16-2014 at 04:23.
Kazalu is offline
 


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

Forum Jump


All times are GMT -4. The time now is 17:31.


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