Raised This Month: $ Target: $400
 0% 

model


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Atspulgs
Senior Member
Join Date: Mar 2008
Old 06-07-2009 , 17:56   Re: model
Reply With Quote #6

yeah i tried that and it did compile fine but my server wouldn't accept it, tells its a bad string or something, so i figure it wants that string is a constant. So what i need is a way of getting the cvar and then declaring the model variable as a constant. I tried something like that but compiler wouldnt let me do that.

As of that i have come to a question, can i pass that variable down to other methods without making it global?
Please give me an example as well as explanation.

In java it would look something like this.

Code:
class someclass
{
	public static void main(String[] args)
	{
		int someInt = 1;
		someMethod(someInt);
	}
	
	static void someMethod(int theInt)
	{
		System.out.println(theInt);
	}
}
So can i do something similar and how would i be doing it in this particular scenario?
__________________
-=DG Ats
DoomedGang web page -
http://www.doomedgang.com
Atspulgs 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 13:55.


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