My name esp isn't working.Help me fix it.
My codes:
Code:
for (int i = 1; i < 8; i++)
{
if (left > arr[i].x)
left = arr[i].x;
if (top < arr[i].y)
top = arr[i].y;
if (right < arr[i].x)
right = arr[i].x;
if (bottom > arr[i].y)
bottom = arr[i].y;
}
char playerName[32];
sprintf(playerName, "%s", pInfo.name);
if (vis_acti.getValve()) {
if (vis_name.getValve())
{
DrawStringMiddle(pFont, true, x, y, Color(255, 255, 255, 255), pInfo.name);
}
Code:
}
if (vis_name.getValve()) {
DrawStringMiddle(pFont, true, top.x, top.y - 5, Color(240, 240, 240, 255), pInfo.name);
}
Saw an another source code with name esp and it's working
Code:
if(Config->GetValue( "Visuals", "Name" ).m_bValue)
{
Draw::DrawString( 5, vecTop.x + iWidth + (iWidth / 8) + 8, vecTop.y + 6, colTeam, false, "%s", pEntity->GetName( ).c_str( ) );
}
So where the fu*k is my trouble.