Making DLL.
Hi my name is Mario, Im trying to make a dll with code in it to make a hack. And I need ot put something above it. If I dont I just get a error when I try to build it. I need help please.
This is the problem, When I copy paste it to the dll and try to build a get a error. It says it failed and ogot 0 succsed and 1 failed. I just copy paste this and it dont work.
void DrawBox(UCanvas* Canvas, APawn* Target, FColor color)
{
if(Target != NULL && Canvas != NULL)
{
FBox Box;
Target->GetComponentsBoundingBox(&Box);
FVector vpjMax = WorldToScreen(Canvas, Box.Max);
FVector vpjMin = WorldToScreen(Canvas, Box.Min);
FVector vpjCenter = WorldToScreen(Canvas, Target->Location);
float flWidth = fabs((vpjMax.Y - vpjMin.Y) / 2);
Canvas->CurX = vpjCenter.X - flWidth / 2;
Canvas->CurY = vpjMax.Y;
Canvas->DrawColor = color;
Canvas->DrawBox(flWidth, flWidth * 2);
}
}