UGX-Mods

Call of Duty 5: World at War => Help Desk => Scripting => Topic started by: nickst98 on October 18, 2012, 12:36:33 am

Title: fx error? pls help
Post by: nickst98 on October 18, 2012, 12:36:33 am
(https://www.ugx-mods.com/forum/proxy.php?request=http%3A%2F%2Fi47.tinypic.com%2F33vnlea.jpg&hash=9326fd1b23ba6e7dce1f83ff667dedc206f82cc9)
(https://www.ugx-mods.com/forum/proxy.php?request=http%3A%2F%2Fi47.tinypic.com%2F29uv9n4.jpg&hash=68baa882dc8a28e9aaeb696993cbc03abd194a89)

any ideas thanks
Title: Re: fx error? pls help
Post by: treminaor on October 18, 2012, 03:50:58 am
Add:
Code Snippet
Plaintext
#include common_scripts\utility;
to the very top of your script file, before any code starts. getStructArray isn't an engine function, so you either have to include the file that contains the function definition (using the #include line I just showed you), or reference the file in the function call, such as:
Code Snippet
Plaintext
structs = common_scripts\utility::getStructArray("test","targetname");
Title: Re: fx error? pls help
Post by: nickst98 on October 18, 2012, 04:03:43 am
Add:
Code Snippet
Plaintext
#include common_scripts\utility;
to the very top of your script file, before any code starts. getStructArray isn't an engine function, so you either have to include the file that contains the function definition (using the #include line I just showed you), or reference the file in the function call, such as:
Code Snippet
Plaintext
structs = common_scripts\utility::getStructArray("test","targetname");

what file do i put the code in?
Title: Re: fx error? pls help
Post by: treminaor on October 18, 2012, 04:21:05 am
what file do i put the code in?
The same file you tried to use getStructArray() in.
Title: Re: fx error? pls help
Post by: nickst98 on October 18, 2012, 04:37:30 am
The same file you tried to use getStructArray() in.
yaphil made the script ill have to talk to him
Title: Re: fx error? pls help {fixed}
Post by: nickst98 on October 19, 2012, 08:26:20 pm
fixed