Reply to Re: A scripting problem
If you don't have an account, just leave the password field blank.
There are various ways to fix this. One way is to use sp_brain(¤t_sprite, 0); like done in en-gmog.c (like scratcher said in this thread) and then the code or you can do:
int &temp = create_sprite(-50, -50, 0, 71, 1);
sp_script(&temp, "en-tr22d");
in void die(void) which creates a random sprite outside the screen with a script attached, then you can place the cutscene/code in that script (in void main(void)) - where en-tr22d is the name of the script, in this case.
Edit: but as it's a short piece of code, the first solution would suit fine I guess (adding sp_brain(¤t_sprite, 0); )
int &temp = create_sprite(-50, -50, 0, 71, 1);
sp_script(&temp, "en-tr22d");
in void die(void) which creates a random sprite outside the screen with a script attached, then you can place the cutscene/code in that script (in void main(void)) - where en-tr22d is the name of the script, in this case.
Edit: but as it's a short piece of code, the first solution would suit fine I guess (adding sp_brain(¤t_sprite, 0); )