iv'e gone over this like 50 times and i just keep getting a
'expected primary-expression before '.' token ' error
i just donno whats wrong with it :|
Code:#include <stdio.h> typedef struct Sprite { int Pox, Poy; // DEFINES CO-ORDINATES int Direction; // SETS SPRITES DIRECTION // 1 UP // 2 RIGHT // 3 DOWN // 4 LEFT int health; // SETS HEALTH int Width, Hight; // SETS SPRITE DEMENTIONS }Player; void func(void) { Player.Pox = 100; } int main(void) { func(); printf("%d",Player.Pox); getchar(); }