Hello Guys,i just have a working code that got 'catched' by Xtrap.
When i remove it my dll works good with the others functions,and xtrap fails,but when i try to make this code work(again,because it was working some time ago),xtrap detects it easy!
See the code above :
else if( ( GetAsyncKeyState( VK_ADD ) & 1 ) == 1 )
{
if( GetAsyncKeyState( VK_SHIFT ) & 0x8000 )
{
if( iHairStyle < 12 )
iHairStyle++;
PrintMessageOnChat( "Hairstyle #%d", iHairStyle );
}
else
{
if( iTeleport < TELEPORT_PLACES )
iTeleport++;
PrintMessageOnChat( "%s (%d)", szTeleportLocations[iTeleport], iTeleport );
}
}
else if( ( GetAsyncKeyState( VK_SUBTRACT ) & 1 ) == 1 )
{
if( GetAsyncKeyState( VK_SHIFT ) & 0x8000 )
{
if( iHairStyle > 0 )
iHairStyle--;
PrintMessageOnChat( "Hairstyle #%d", iHairStyle );
}
else
{
if( iTeleport != 0 )
iTeleport--;
PrintMessageOnChat( "%s (%d)",szTeleportLocations[iTeleport], iTeleport );
}
}
else if( ( GetAsyncKeyState( VK_F12 ) & 1 ) == 1 )
{
if( GetAsyncKeyState( VK_SHIFT ) & 0x8000 )
{
PrintMessageOnChat( "Changing hairstyle to #%d", iHairStyle );ChangeHairstyle( iHairStyle );
}
else
{
ChatPrintf( "Teleporting..." );
Teleport( iTeleport );
bValidate = true;
}
}
CAn you help me sending some idea how to make it work in a different way?
Thank you.
When i remove it my dll works good with the others functions,and xtrap fails,but when i try to make this code work(again,because it was working some time ago),xtrap detects it easy!
See the code above :
else if( ( GetAsyncKeyState( VK_ADD ) & 1 ) == 1 )
{
if( GetAsyncKeyState( VK_SHIFT ) & 0x8000 )
{
if( iHairStyle < 12 )
iHairStyle++;
PrintMessageOnChat( "Hairstyle #%d", iHairStyle );
}
else
{
if( iTeleport < TELEPORT_PLACES )
iTeleport++;
PrintMessageOnChat( "%s (%d)", szTeleportLocations[iTeleport], iTeleport );
}
}
else if( ( GetAsyncKeyState( VK_SUBTRACT ) & 1 ) == 1 )
{
if( GetAsyncKeyState( VK_SHIFT ) & 0x8000 )
{
if( iHairStyle > 0 )
iHairStyle--;
PrintMessageOnChat( "Hairstyle #%d", iHairStyle );
}
else
{
if( iTeleport != 0 )
iTeleport--;
PrintMessageOnChat( "%s (%d)",szTeleportLocations[iTeleport], iTeleport );
}
}
else if( ( GetAsyncKeyState( VK_F12 ) & 1 ) == 1 )
{
if( GetAsyncKeyState( VK_SHIFT ) & 0x8000 )
{
PrintMessageOnChat( "Changing hairstyle to #%d", iHairStyle );ChangeHairstyle( iHairStyle );
}
else
{
ChatPrintf( "Teleporting..." );
Teleport( iTeleport );
bValidate = true;
}
}
CAn you help me sending some idea how to make it work in a different way?
Thank you.