Forum > Coding >

isAPIAttached(); Not working

NeonFox

Your real dad

Posts: 219

Threads: 11

Joined: Jun, 2020

Reputation: 2

Posted

So I am using WRD api v2 everything is working good exept isAPIAttached and I am not sure how to fix this.

I have these:

        [DllImport("WeAreDevs_API.cpp.dll", CallingConvention = CallingConvention.Cdecl)]

        public static extern bool LaunchExploit();

 

        [DllImport("WeAreDevs_API.cpp.dll", CallingConvention = CallingConvention.Cdecl)]

        public static extern bool SendLuaCScript(string script);

 

        [DllImport("WeAreDevs_API.cpp.dll", CallingConvention = CallingConvention.Cdecl)]

        public static extern bool SendLimitedLuaScript(string script);

 

        [DllImport("WeAreDevs_API.cpp.dll", CallingConvention = CallingConvention.Cdecl)]

        public static extern bool SendCommand(string script);

I will leave a screenshot here:

prnt.sc/surhtu

 

Thanks!

  • 0

use. dark. mode.

Hectique

Hectique

Posts: 1076

Threads: 155

Joined: Nov, 2019

Reputation: 14

Replied

Try this--

 

[/code]

bool yes = isAPIAttached;

if (yes == true)

{

    //Whatever code you want

}

[/code]

 

Tell me if it doesn't work

  • 0

a former active and known member of the WRD community, but im kinda just a meme now

NeonFox

Your real dad

Posts: 219

Threads: 11

Joined: Jun, 2020

Reputation: 2

Replied

The bool works but I have to make a "Private bool" variable for it to work.

Is that supposed to happen?

 

Screenshot:

https://prnt.sc/suvlsn

  • 0

Added

Im using the WRD v2 api for the console & also

api.isAPIAttached does not work still.

 

Error: CS0103 C# The name does not exist in the current context

 

Another screenshot:

https://prnt.sc/sv2y9t.

  • 0

use. dark. mode.

Hectique

Hectique

Posts: 1076

Threads: 155

Joined: Nov, 2019

Reputation: 14

Replied

@NeonFox U have errors because u wrote isAPIAttached without parentheses. Example - bool yes = isAPIAttached();

  • 0

a former active and known member of the WRD community, but im kinda just a meme now

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )