Blockland Forums > Modification Help
New problem syntax errors in script wont go away
Red_Guy:
functions dont get a semicolon (;) afer the last closing brace
change:
function ChainswordImage::onPreFire(%this, %obj, %slot)
{
%obj.playthread(2, armattack);
};
to:
function ChainswordImage::onPreFire(%this, %obj, %slot)
{
%obj.playthread(2, armattack);
}
Priad:
--- Quote from: Red_Guy on July 30, 2010, 03:55:29 PM ---functions dont get a semicolon (;) afer the last closing brace
change:
function ChainswordImage::onPreFire(%this, %obj, %slot)
{
%obj.playthread(2, armattack);
};
to:
function ChainswordImage::onPreFire(%this, %obj, %slot)
{
%obj.playthread(2, armattack);
}
--- End quote ---
Thanks a ton it works perfectly! :D
Kalphiter:
Functions end in }
Packages, and objects/datablocks end in };
datablock PlayerData(blahblah)
{
};