glodalname
Displaying 1-4 of 4 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
suicdman

I have been having problem with my global names thing. When I go to use a script it says that the globalname is not specified! Can anyone help with this? And one more thing. I was curious to know how old is everyone in here. Thanks.



Posted on 2001-10-31 22:01:13

Devon

You are using V2.7/Ika, correct? Most likely you've forgotten to import the namespace into the current module.

Unlike V2.5/k+j, a global var defined in one PY file is _not_ considered to exist in any other unless you explicitly make it so. You need to type

from "name" import *

where "name" is the name of the PY file that contains the global you are trying to use, minus the quotes and the extention. (So party.py would be

from party import *

)

You need to add such a line to every PY file that you want to access that global in, even if you are already importing a module that itself imports the one you want.


As for age, I believe the field runs from 15 to late 30s. Average mid 20s I would guess.

-Devon



--- Square's making money. We're making art.

Posted on 2001-11-02 03:29:57

suicdman

Well after I posted this thread I went back in some of python files and did that exact same thing! So there wasn't any need to do that. But now I have a syntax problem! I've tried everything but it doesn't work!! I tried to do a map switch but it says that I have a syntax problem!! Thanks for the help on the global name!



Posted on 2001-11-03 11:13:32

suicdman

I got everything to work exept one thing. v27 performs an illegal opperation and closes! I got everything to work exept this! I am confuesed! I need help!!!



Posted on 2001-11-03 16:07:32


Displaying 1-4 of 4 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.