C
C#2w ago
Lukified

Long string of errors

They wont go away arrrg https://paste.mod.gg/xzenntejzuag/0
BlazeBin - xzenntejzuag
A tool for sharing your source code with the world!
No description
No description
No description
No description
No description
No description
35 Replies
Keswiik
Keswiik2w ago
is this multiple files on your machine or all in one?
Lukified
LukifiedOP2w ago
What do you mean
Keswiik
Keswiik2w ago
your snippet has multiple classes in it i'm asking if these are all in the same file in your projects
Lukified
LukifiedOP2w ago
Yea
Keswiik
Keswiik2w ago
ok then your problem is
if (paths.Length > 0)
{
showtapeSegmentPaths[0] = paths[0];
currentShowtapeSegment = 0;
playMovements = false;
//Check if null
if (showtapeSegmentPaths[0] != "")
{
using System.Collections;
using System.Collections.Generic;
using UnityEngine; // If you're using MonoBehaviour, make sure to include UnityEngine

public class AudioProcessor : MonoBehaviour // Class name defined
if (paths.Length > 0)
{
showtapeSegmentPaths[0] = paths[0];
currentShowtapeSegment = 0;
playMovements = false;
//Check if null
if (showtapeSegmentPaths[0] != "")
{
using System.Collections;
using System.Collections.Generic;
using UnityEngine; // If you're using MonoBehaviour, make sure to include UnityEngine

public class AudioProcessor : MonoBehaviour // Class name defined
Lukified
LukifiedOP2w ago
Is this fixed or just the segment that doesn’t work as intended?
Keswiik
Keswiik2w ago
this is the segment that is breaking your stuff you are trying to declare a class within your DeleteMove method
Lukified
LukifiedOP2w ago
Hmm
Keswiik
Keswiik2w ago
(also those using statements should be at the top of your file)
Lukified
LukifiedOP2w ago
Ah
Scratch
Scratch2w ago
it looks like he overwrote part of the file with another file
mtreit
mtreit2w ago
Like what is this?
No description
Lukified
LukifiedOP2w ago
Huh
mtreit
mtreit2w ago
A bunch of code floating in space... Not inside a method. You mangled something.
Lukified
LukifiedOP2w ago
I can tell
mtreit
mtreit2w ago
ctrl+z until it's green again 😉
Lukified
LukifiedOP2w ago
Yeah it isn’t doing anything
mtreit
mtreit2w ago
:sku:
Lukified
LukifiedOP2w ago
I need this fixed by a professional
Scratch
Scratch2w ago
or an exorcist
Lukified
LukifiedOP2w ago
:chuck1: I’m redoing this
mtreit
mtreit2w ago
rshwFormat thefile = rshwFormat.ReadFromFile(showtapeSegmentPaths[0]);
rshwFormat thefile = rshwFormat.ReadFromFile(showtapeSegmentPaths[0]);
Is that a camelCase type name?
Lukified
LukifiedOP2w ago
BlazeBin - pjxfynvfvrtt
A tool for sharing your source code with the world!
Lukified
LukifiedOP2w ago
is this code better
Scratch
Scratch2w ago
it doesn't have another file's contents in the middle of it, so probably
mtreit
mtreit2w ago
It's at least not obviously completely borked.
Lukified
LukifiedOP2w ago
No description
mtreit
mtreit2w ago
That usually means you are missing a using statement at the top of the file. Press ctrl+. (control plus period) on the offending line and it will usually suggest an auto-fix if possible. Like adding the missing using.
Lukified
LukifiedOP2w ago
alright. Let me try that
mtreit
mtreit2w ago
If that doesn't work you might be missing a package reference.
Lukified
LukifiedOP2w ago
It seems to have worked but I’m not too sure. @mtreit Thank you so much! If any of you were wondering what the game looks like (I doubt) here’s a short clip
Lukified
LukifiedOP2w ago
Lukified
LukifiedOP2w ago
Excuse my poor music choice
aria :)
aria :)2w ago
the animatronic models look great
Lukified
LukifiedOP2w ago
Thanks It has nothing to do with fnaf btw

Did you find this page helpful?