04-04-2013, 05:38 PM
Error:
FATAL ERROR: Could not load script file
'custom_stories/Me/maps/Me.hps'!
main (5, 7) : ERR : Data type can't be 'void'
main 2, 25) : ERR : Only objects hace constructors
main (11, 1) : ERR : No matching signatures to 'PlaySoundEntity(string@&, string@&, string@&, const uinst, const boll)'
hps file:
////////////////////////////
// Run first time starting map
void OnStart()
{
void AddUseItemCallback("", "awesomekey_1", "mansion_1", "UsedKeyOnDoor", true);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_1", false, true);
PlaySoundEntity("", "unlock_door", "mansion_1", 0, false);
RemoveItem("awesomekey_1");
}
////////////////////////////
// Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
i have followed the instructions both in video and the frictionalgames wiki and i doubled check if i missed something and i cant really see that i missed something, help?
FATAL ERROR: Could not load script file
'custom_stories/Me/maps/Me.hps'!
main (5, 7) : ERR : Data type can't be 'void'
main 2, 25) : ERR : Only objects hace constructors
main (11, 1) : ERR : No matching signatures to 'PlaySoundEntity(string@&, string@&, string@&, const uinst, const boll)'
hps file:
////////////////////////////
// Run first time starting map
void OnStart()
{
void AddUseItemCallback("", "awesomekey_1", "mansion_1", "UsedKeyOnDoor", true);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_1", false, true);
PlaySoundEntity("", "unlock_door", "mansion_1", 0, false);
RemoveItem("awesomekey_1");
}
////////////////////////////
// Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
i have followed the instructions both in video and the frictionalgames wiki and i doubled check if i missed something and i cant really see that i missed something, help?