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:
Thanks!
use. dark. mode.
Replied
Try this--
[/code]
bool yes = isAPIAttached;
if (yes == true)
{
//Whatever code you want
}
[/code]
Tell me if it doesn't work
Cancel
Post
a former active and known member of the WRD community, but im kinda just a meme now
Replied
The bool works but I have to make a "Private bool" variable for it to work.
Is that supposed to happen?
Screenshot:
Cancel
Post
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:
Cancel
Post
use. dark. mode.
Replied
@NeonFox U have errors because u wrote isAPIAttached without parentheses. Example - bool yes = isAPIAttached();
Cancel
Post
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 )
Cancel
Post