Jump to content
Sign in to follow this  
chaoticgood

Script error, can't figure out why

Recommended Posts

Hello, my current script churns out an error and I don't know why. Here it is:

Script.sqf

player call GearReplace;

"GearReplace" is a function inside of

functions.sqf

GearReplace = 
{
	_this removeAllWeapons;
};

And finally, inside of my init.sqf

execVM "functions.sqf";
execVM "Script.sqf";

This gives me an error message ingame:

player call |#|gearreplace

Error undefined variable in expression: gearreplace

line 1

The script is supposed to remove the players weapons.

Edited by chaoticgood

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×