Pages: 1
  Print  
Author Topic: Global variables  (Read 4378 times)
Offline (Unknown gender) score_under
Posted on: November 04, 2008, 10:03:48 am

Member
Joined: Aug 2008
Posts: 308

View Profile
How would I go about defining global variables in C++/EDL? I can't think of where to put a C++ code block. Would I have to just edit the source file afterwards? (Or is there something like "global void* variable_name;" in C++? I've only had experience with C)
Logged
Offline (Male) RetroX
Reply #1 Posted on: November 04, 2008, 11:48:48 am

Master of all things Linux
Contributor
Location: US
Joined: Apr 2008
Posts: 1055
MSN Messenger - classixretrox@gmail.com
View Profile Email
Put it in the game/room start event of something, then it'll be at the top of the code.
Logged
My Box: Phenom II 3.4GHz X4 | ASUS ATI RadeonHD 5770, 1GB GDDR5 RAM | 1x4GB DDR3 SRAM | Arch Linux, x86_64 (Cube) / Windows 7 x64 (Blob)
Quote from: Fede-lasse
Why do all the pro-Microsoft people have troll avatars? :(
Offline (Male) Rusky
Reply #2 Posted on: November 04, 2008, 07:28:13 pm

Resident Troll
Joined: Feb 2008
Posts: 954
MSN Messenger - rpjohnst@gmail.com
View Profile WWW Email
global. ? not sure if that works yet.
But either way, global variables are icky. Try to do without them  :'(
Logged
Offline (Unknown gender) score_under
Reply #3 Posted on: November 05, 2008, 07:02:18 am

Member
Joined: Aug 2008
Posts: 308

View Profile
And this is comletely off-topic, but Rusky, your links have quotes around them (which breaks them) and we're already on enigma's site so we don't need a link :P
Logged
Offline (Unknown gender) OniLink10
Reply #4 Posted on: November 06, 2008, 06:24:57 pm
Member
Joined: Jul 2008
Posts: 68

View Profile Email
Put it in the game/room start event of something, then it'll be at the top of the code.
Create Events comes first. ;)
Logged
Offline (Male) Rusky
Reply #5 Posted on: November 07, 2008, 09:02:29 am

Resident Troll
Joined: Feb 2008
Posts: 954
MSN Messenger - rpjohnst@gmail.com
View Profile WWW Email
waaaarh...
I just copy/pasted my signature from everywhere else XD
Logged
Offline (Unknown gender) score_under
Reply #6 Posted on: November 07, 2008, 12:25:34 pm

Member
Joined: Aug 2008
Posts: 308

View Profile
waaaarh...
I just copy/pasted my signature from everywhere else XD
In the source for the page:
Code: [Select]
<a href="http://&quot;http://blog.abubalay.com&quot;" target="_blank">BLOG</a>That link just completely failed...
Logged
Offline (Male) Rusky
Reply #7 Posted on: November 07, 2008, 05:41:23 pm

Resident Troll
Joined: Feb 2008
Posts: 954
MSN Messenger - rpjohnst@gmail.com
View Profile WWW Email
It's because the new IPB puts quotes in the url tags and smf doesn't.
Logged
Offline (Unknown gender) score_under
Reply #8 Posted on: November 08, 2008, 04:43:35 pm

Member
Joined: Aug 2008
Posts: 308

View Profile
You still haven't changed it!
Logged
Offline (Male) Rusky
Reply #9 Posted on: November 08, 2008, 06:31:40 pm

Resident Troll
Joined: Feb 2008
Posts: 954
MSN Messenger - rpjohnst@gmail.com
View Profile WWW Email
why do you care?
Logged
Offline (Unknown gender) score_under
Reply #10 Posted on: November 09, 2008, 07:47:54 am

Member
Joined: Aug 2008
Posts: 308

View Profile
Because
Logged
Offline (Male) Rusky
Reply #11 Posted on: November 11, 2008, 06:34:33 pm

Resident Troll
Joined: Feb 2008
Posts: 954
MSN Messenger - rpjohnst@gmail.com
View Profile WWW Email
LOL. if that's the case, I'll just have to leave it mangled. :P
Logged
Offline (Unknown gender) score_under
Reply #12 Posted on: November 13, 2008, 02:27:56 pm

Member
Joined: Aug 2008
Posts: 308

View Profile
 :(  Seriously, it's like an unscratchable itch. Will write regex for proxy, pronto.

EDIT: Ok, in Privoxy..

default.action or user.action
Code: [Select]
{+filter{broken-enigma-links}}
enigma-dev.org
default.filter
Code: [Select]
FILTER: broken-enigma-links Fix borked enigma links

s@href="http://&quot;(.*)&quot;@href="$1@gUi

How do you spell Score_Under?
O...b...s...e...s...s..i...v...e...-...c...o...m...p...u..l...s...i...v..e
« Last Edit: November 13, 2008, 02:33:31 pm by score_under » Logged
Offline (Male) Josh @ Dreamland
Reply #13 Posted on: November 16, 2008, 09:04:38 am

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2950

View Profile Email
global. works, I believe. Certainly does now, and I'm pretty sure it did in R3.
Logged
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble
"I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
Pages: 1
  Print