ags plugin support bug

Started by stuh505, Sat 06/11/2004 01:02:18

Previous topic - Next topic

stuh505

there appears to be a slight bug in the plugin support that doesn't allow the plugin features to be used in the global script outside of the main functions (ie, where you would define global variables). 

Pumaman

Can you provide an example of what you mean? I'm not really sure what you're getting at.

stuh505

Alright.

At top of global script file:

int fstep = 1; WORKS
int fstep = ints_to_float(0,050); DOESNT WORK


In repeatedly execute:

int fstep = ints_to_float(0,050);  WORKS

(ints_to_float(a,b) is a plugin function)

Pumaman

That's nothing particular to plugins -- global data cannot be initialized with a function call. You need to place any such initialisation in game_start.

stuh505

Interesting.  Okay then, thanks.

SMF spam blocked by CleanTalk