Hello everyone,
I seem to have a minor problem with SED, maybe I just sat too long in front of my Screen but I absolutely do not know, why I get a "Crash in Main" Alert Window everytime I run this simple code.
#include <acknex.h>
#include <default.c>
#define Lifepoints skill1
ENTITY* Player; //Public Entity
function main()
{
Player.Lifepoints = 10;
}
I defined skill1 as Lifepoints so its easier to program with, it does not matter if I use Player.skill1 (that does not work either).
I created the Entity* Player before my Main-Code so its accessible from everywhere, placing it in the Main also does not work (Still getting a crash).
I must overlook something obvious but I dont know what
,
is there someone who can help me? It would be very appreciated
!