04-14-2013, 03:27 PM
Hi im new in scripting i got an error:
FATAL ERROR: Could not load script file
'custom_stories/domek/maps/domek.hps'!
main (3, 19) : ERR : Expected ';'
My script file:
void OnEnter()
{
AddUseItemCallback{"", "kluczdodrzwi_1", "drzwi", "UsedKeyOnDoor", bool abAutoDestroy};
}
void MyFunc(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("drzwi", false, true);
PlaySoundAtEntity("", "unlock_door", "drzwi", 0, false);
RemoveItem("kluczdodrzwi_1");
}
I hope someone can help.
(Sorry for bad english im polish)
FATAL ERROR: Could not load script file
'custom_stories/domek/maps/domek.hps'!
main (3, 19) : ERR : Expected ';'
My script file:
void OnEnter()
{
AddUseItemCallback{"", "kluczdodrzwi_1", "drzwi", "UsedKeyOnDoor", bool abAutoDestroy};
}
void MyFunc(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("drzwi", false, true);
PlaySoundAtEntity("", "unlock_door", "drzwi", 0, false);
RemoveItem("kluczdodrzwi_1");
}
I hope someone can help.
(Sorry for bad english im polish)
