Script Fatal Error
I need some help with this, I'm new so I don't know what's wrong.
Whenever I start up my custom story I get this error message:
FATAL ERROR: Could not load script file 'custom_stories/Map Test 3/maps/test.hps'!
main (4,2) : ERR : No matching signatures to
'AddUseItemCallBack(string@&, string@&, string@&, string@&, const bool)'
main (5,2) : ERR : No matching signatures to
'AddUseItemCallBack(string@&, string@&, string@&, string@&, const bool)'
main(27,22) : ERR : Expected')' or ','
This is what I have gotten so far:
void OnStart()
{
SetLocalVarInt("DoorLocked", 1);
AddUseItemCallBack("", "key_laboratory_1", "level_wood_1", "UsedKeyOnDoor", true);
AddUseItemCallBack("", "key_tomb_1", "mansion_2", "UsedKeyOnDoor2", true);
SetEntityPlayerInteractCallback("mansion_2", "UsedKeyOnDoor3", false);
}
void OnEnter()
{
}
void OnLeave()
{
}
void UsedKeyOnDoor(string &in asitem, string &in asdoor)
{
SetLevelDoorLocked("level_wood_1", false);
PlayGuiSound("unlock_door.snt", 100);
RemoveItem("key_laboratory_1);
}
void UsedKeyOnDoor2(string &in asitem, string &in asdoor)
{
SetSwingDoorLocked("mansion_2", false, true);
PlayGuiSound("unlock_door.snt", 100")
RemoveItem("key_tomb_1");
SetLocalVarInt("DoorLocked", 0);
}
void UsedKeyOnDoor3(string &in asEntity)
{
if(GetLocalVarInt("DoorLocked") == 1)
{
SetMessage("Messages", "Doorlock2", 3);
}
}
|