Old 08-11-2008   #1 (permalink)
UWSVN Contributor
 
moggie100's Avatar
 

Join Date: Dec 2007
Posts: 143
moggie100 is on a distinguished road
Default Dissapearing Variables

Hi!

Does anyone know why a value input into a lua function would not actually be passed to the function?

I'm handing a variable (useWorldCoords, specifically) to my modified sent from the tool swep, and its coming out 'nil' at the other side :/ am I missing something obvious?

Sorry if this is dead simple, but its driving me up the wall! >.<

I know this isn't really wiremod related per-say... but you lot are nicer than the official forums
moggie100 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 08-11-2008   #2 (permalink)
UWSVN Contributor
 
Hitman271's Avatar
 

Join Date: Feb 2008
Location: Alabama, USA
Posts: 385
Hitman271 is on a distinguished road
Send a message via Yahoo to Hitman271
Default Re: Dissapearing Variables

It would really help to show the problem code
__________________
Quote:
Originally Posted by Anticept View Post
It is not some place where you can toss your dick around and expect people to suck it.
Quote:
Originally Posted by Black Phoenix on Fixing the Gpu
When I get laid
READ AND GET SEXAH PRONZ OR DONT AN GET BANNED

IF ALL ELSE FAILS THEN READ THIS BEFORE MAKING A HELP THREAD

Remember to ask me for cpu help if you need it, just pm me with your situation and/or problem code
Hitman271 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-12-2008   #3 (permalink)
UWSVN Contributor
 
moggie100's Avatar
 

Join Date: Dec 2007
Posts: 143
moggie100 is on a distinguished road
Default Re: Dissapearing Variables

Hmm... I Suppose it would >.<

Sorry, I posted that rather late at night, unfortunately I'm at work at the moment, so I cant post the code... I'll put it up later today.

-=Update=-

Oops!

T'was a scoping issue! Sorry about that, I must've been -really- tired when I posted this :/

Thanks anyway!

Last edited by moggie100; 08-12-2008 at 03:31 PM..
moggie100 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Reply

Bookmarks

Tags
functions, lua, problem, variables

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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT -7. The time now is 12:34 AM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.

Page top