Raised This Month: $ Target: $400
 0% 

[solved] clear function's global variable


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 04-14-2009 , 05:08   [solved] clear function's global variable
Reply With Quote #1

I have a function and I send it a variable, a global one, and I was wondering how I get what variable name I sent to the function in order to clear it inside the function ?

Code:
new g_iTest[3]
 
//...
 
g_iTest[0] = 982 // just a number
 
//...
 
clearVar(g_iTest[0])
 
//...
 
stock function clearVar(var)
{
      /* ??? = 0 ?? */
}
I don't know the actual variable name I will send, I have many arrays that I use to send through that, that's why I search for an automatic way to get it...
__________________
Hunter-Digital is offline
 



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 02:24.


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