The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A question regarding a key script
k.okkim Offline
Junior Member

Posts: 3
Threads: 1
Joined: Jun 2016
Reputation: 0
#1
A question regarding a key script

Hey! I've been trying to script some stuff into my custom story (which is just something to make me learn c++ and the level editor) and I have a problem. I have a script which should allow me to use a key on a oor, unlock it and play a sound, but I keep getting this error message:

FATAL ERROR: Could not load script file
'custom_stories/ExampleStory/maps/00_example1.hps'!
main (3, 2) : ERR : No matching signatures to
'AddUserItemCallBack(string@&, string@&, string@&, string@&, const
bool)'

Here's the script: http://pastebin.com/4xp9mg8r

My key's name is single_use_master_key and the door name is level_wood_1.
I've also included the script file along with this post.

Does anyone know what's causing that, and how can I fix it? I've tried a lot of things, but the only thing I've managed to do was getting different and most likely more complicated error messages.

PS. Can I post my script here in a drop-down menu instead of using a pastebin link? If so, please tell me how.
(This post was last modified: 06-13-2016, 08:32 AM by k.okkim.)
06-13-2016, 08:30 AM
Find


Messages In This Thread
A question regarding a key script - by k.okkim - 06-13-2016, 08:30 AM



Users browsing this thread: 1 Guest(s)