Latest Uploads
Shields 64x64

Pakz

Ffs_Spam

Jayenkai

Hives Screen shot

rychan

Rpg Potion Sprites

Pakz

Super Shap ... ration Kit

Andy_A

Platdude Spotting

Jayenkai

Back to spinal's Blog ( Created 05 November 2015 | Last Edited 05 November 2015)
Development Diary : Global Variables!
And this is why I hate c++ with all my being!

main.h
extern bool checkSound;


c64_nds.i
#include "main.h"
bool soundCheck=false;


sid_3ds.i
#include "main.h"
bool soundCheck=false;


multiple definition of 'soundCheck'

Why the hell can C based languages do global variable in some sort of sensible way?

Latest Comments

Posted : Thursday, 05 November 2015, 05:38
Jayenkai


PHPs a bitch for Globals. You need to respecify that it's a global in EVERY SINGLE FUNCTION!!!!

Thank god for Blitz!!

Homepage : http://AGameAWeek.com
Posted : Thursday, 05 November 2015, 06:33
rychan


You can always store global variables in the $GLOBALS array. So you could write the following:

-->

Hope this helps out with future PHP stuffs

Homepage : http://www.refreshgames.co.uk/
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 724|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Latest Posts
Pokitto
Jayenkai Sun 02:00
Arduboy Owners Club
spinal Sun 01:35
Slow News
Jayenkai Sat 23:36
AGameAWeek : 2017 - Part One
Jayenkai Sat 08:31
Facebook Group
rskgames Fri 10:47
Possible LCD experimentation imminent.
steve_ancell Fri 10:30
1-2-...Never Mind
rockford Fri 07:12
Buy Zelda
rockford Wed 16:00
What Have You Done? - April 2017
rychan Wed 06:43
I Hear Voices
Jayenkai Tue 04:30
More

Latest Items
Showcase : Read Error A
Jayenkai Sat 08:28
Showcase : Hives
rockford Wed 12:53
Showcase : Quadoban
rskgames Fri 10:11
Blog : My Arduino experience.
steve_ancell Wed 17:02
Showcase : Roguelike Explorer
Pakz Fri 06:59
Showcase : Infinitron
Jayenkai Mon 07:50
News : Newsletter #311
Jayenkai Thu 17:27
Link : Super Shapes Exploration Kit
Andy_A Thu 11:09
Dev-Diary : Sensitive - Arduboy!
rychan Thu 17:27
Snippet : Skylines
steve_ancell Tue 14:25
Dev-Diary : PS2 to N64 Adapter
spinal Sun 10:49
Link : Vector Tutorials/Help page.
Pakz Thu 23:00
Blog : mini project
spinal Sun 10:13
Snippet : Wall Tracing on Random Maps (rpg)
rskgames Wed 22:48
More

Who's Online
Krakatomato
Sun, at 04:23
Jayenkai
Sun, at 04:03
spinal
Sun, at 03:15
rychan
Sun, at 02:55
Pakz
Sun, at 00:57
rskgames
Sun, at 00:07
steve_ancell
Sat, at 20:01
Evil Roy Ferguson
Sat, at 15:43
rockford
Sat, at 10:31
zzoom
Fri, at 16:24
Link to this page
Site : Jayenkai 2006-Infinity | MudChat's origins, BBCode's former life, Image Scaler.