I have a problem with structures in my game. My project has these files vars.c and vars.h, where i declare stuff. I have the player''s structure in the vars.h like this...
(and all the other player-stuff..)
And in the vars.c...
static player pl;
pl.x = 16;
pl.y = 16;
pl.speed = 1;
I get the error "parse error before `.´" at the pl.x point.
So my point is to add those values to the player structure, but i can see that i''m doing something wrong. I''m confused cause it worked before when i was programming with one .c-file only.
So if somebody could tell me how to do this??