Where is the fault shows me the message but as if I myself clear task
if (cleartask)
{
*(int*)0x12CC958 = 0x4E800020;
char buffer[500];
for (int i = 0; i < 18; i++)
if (PLAYER::PLAYER_PED_ID()!= PLAYER::GET_PLAYER_PED(i))
{
if (cleartask)
{
snprintf(buffer, 500, "%s Tried To Clear Task", PLAYER::GET_PLAYER_NAME(i));
PRINT(buffer, 3000);
}
}
}
if (cleartask)
{
*(int*)0x12CC958 = 0x4E800020;
char buffer[500];
for (int i = 0; i < 18; i++)
if (PLAYER::PLAYER_PED_ID()!= PLAYER::GET_PLAYER_PED(i))
{
if (cleartask)
{
snprintf(buffer, 500, "%s Tried To Clear Task", PLAYER::GET_PLAYER_NAME(i));
PRINT(buffer, 3000);
}
}
}