Thund3rb0lt
Junior Member
Posts: 8
Threads: 1
Joined: Jun 2015
Reputation:
0
|
Please help-SOLVED
Hi i recently started using level editor evrything was fine until ir eceived this error
FATAL ERROR:Could not load Script file
custom_storie/test/custom_stories/test/maps/01_test.hps
main (3,5) ERR No matching signatures to
AddUseItemCallback(string@&, string@&, string@&, const bool)
Here my script Ill really appreciate any help
void OnStart()
{
AddUseItemCallback("","key_study_1", "level_hub_1" "FUNCTION",true);
}
void OnEnter()
{
}
void OnLeave()
{
}
void FUNCTION(string &in item,string &in door)
{
SetLevelDoorLocked("level_hub_1",false);
PlayGuiSound("unlock_door.snt",100);
RemoveItem("key_study_1");
}
(This post was last modified: 06-06-2015, 07:08 AM by Thund3rb0lt.)
|
|
06-05-2015, 03:46 PM |
|
DnALANGE
Banned
Posts: 1,549
Threads: 73
Joined: Jan 2012
|
RE: Please help
AddUseIteamCallback
---
You should make it AddUseItemCallback.
You have Iteam
Good luck!
EDIT:
PlayGuiSound("unlock_door.snt",100);
TIP: The 100 is 100 x the Original sound volume.. x100 is a bit too loud i suppose
The PlayGuiSound is only for .ogg files!
Make it : PlayGuiSound("unlock_door.ogg",1); Or these often work as well : PlayGuiSound("unlock_door",1); Try it yourself.
OR
PlaySoundAtEntity("","unlock_door.snt", "WHERE TO PLAY YOUR SOUND AT", 0, false);
(This post was last modified: 06-05-2015, 04:29 PM by DnALANGE.)
|
|
06-05-2015, 04:23 PM |
|
Mudbill
Muderator
Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation:
179
|
RE: Please help
AddUseIteamCallback
^ Typo.
Edit: Welp, I guess I took too long to have this tab open to not realize I was slowly ninja'd. Now that I'm here though, I guess I could point out what DnALANGE did about the volume, but 100 will not actually make it loud. The only valid values are from 0.0f to 1.0f. It's a float variable used as a percentage.
(This post was last modified: 06-05-2015, 04:41 PM by Mudbill.)
|
|
06-05-2015, 04:38 PM |
|
Thund3rb0lt
Junior Member
Posts: 8
Threads: 1
Joined: Jun 2015
Reputation:
0
|
RE: Please help
lol now i saw the grammar mistake :/
the problem is no matter what i do i get the same error
(This post was last modified: 06-05-2015, 05:34 PM by Thund3rb0lt.)
|
|
06-05-2015, 05:24 PM |
|
Traggey
is mildly amused
Posts: 3,257
Threads: 74
Joined: Feb 2012
Reputation:
185
|
RE: Please help
Please try to post in the support section next time. Thanks.
|
|
06-05-2015, 06:07 PM |
|
DnALANGE
Banned
Posts: 1,549
Threads: 73
Joined: Jan 2012
|
RE: Please help
same error?...
Are you sure?
Send the error over please.
---
ABout the 100, it should ONLY make sense in PlaySoundAtEntity! there 2 is times 2 the Original sound volume. Sorry
|
|
06-05-2015, 06:07 PM |
|
Thund3rb0lt
Junior Member
Posts: 8
Threads: 1
Joined: Jun 2015
Reputation:
0
|
RE: Please help
(06-05-2015, 06:07 PM)DnALANGE Wrote: same error?...
Are you sure?
Send the error over please.
---
ABout the 100, it should ONLY make sense in PlaySoundAtEntity! there 2 is times 2 the Original sound volume. Sorry
FATAL ERROR could not load script file
main(3,5) ERR No matching signatures to AddUseItemCallBack(string@&, string@&, string@&, const bool)
Here i have no idea what does it mean
(06-05-2015, 06:07 PM)Traggey Wrote: Please try to post in the support section next time. Thanks.
Sorry its my first time on this site
(This post was last modified: 06-05-2015, 06:16 PM by Thund3rb0lt.)
|
|
06-05-2015, 06:16 PM |
|
DnALANGE
Banned
Posts: 1,549
Threads: 73
Joined: Jan 2012
|
RE: Please help
void FUNCTION(string &in item,string &in door)
{
SetLevelDoorLocked("level_hub_1",false);
PlayGuiSound("unlock_door.snt",100);
RemoveItem("key_study_1");
}
---
Try this :
void FUNCTION(string &in asItem, string &in asEntity)
{
SetLevelDoorLocked("level_hub_1",false);
PlayGuiSound("unlock_door.snt",100);
RemoveItem("key_study_1");
}
|
|
06-05-2015, 06:44 PM |
|
Thund3rb0lt
Junior Member
Posts: 8
Threads: 1
Joined: Jun 2015
Reputation:
0
|
RE: Please help
(06-05-2015, 06:44 PM)DnALANGE Wrote: void FUNCTION(string &in item,string &in door)
{
SetLevelDoorLocked("level_hub_1",false);
PlayGuiSound("unlock_door.snt",100);
RemoveItem("key_study_1");
}
---
Try this :
void FUNCTION(string &in asItem, string &in asEntity)
{
SetLevelDoorLocked("level_hub_1",false);
PlayGuiSound("unlock_door.snt",100);
RemoveItem("key_study_1");
}
i dont know if im doing something wront but its the same error over and over again
here my files
void OnStart()
{
AddUseItemCallback("","key_study_1", "level_hub_1" "FUNCTION",true);
}
void OnEnter()
{
}
void OnLeave()
{
}
void FUNCTION(string &in asItem, string &in asEntity)
{
SetLevelDoorLocked("level_hub_1",false);
PlayGuiSound("unlock_door.snt",100);
RemoveItem("key_study_1");
}
at the editor i checked and everything seems okay im really glad you are trying to help me
|
|
06-05-2015, 06:53 PM |
|
DnALANGE
Banned
Posts: 1,549
Threads: 73
Joined: Jan 2012
|
RE: Please help
AddUseItemCallback("","key_study_1", "level_hub_1" "FUNCTION",true);
---
You missing a Comma.
Try this line and replace it with yours.:
AddUseItemCallback("","key_study_1", "level_hub_1", "FUNCTION",true);
|
|
06-05-2015, 06:55 PM |
|
|