If someone helps me to get it to work well I appreciate it tried in many ways and I have not succeeded
if (cleartask)
{
*(int*)0x12CC958 = 0x4E800020;
int index = 0;
for (int i = 0; i < 18; i++) {
char *name = (char *)NETWORK::NETWORK_PLAYER_GET_NAME(i);
char buf[100];
snprintf(buf, sizeof(buf), "Clear Task: %s", name);
PRINT(buf, 2000);
index++;
}
}
else
{
*(int*)0x12CC958 = 0x7C0802A6;
}
if (cleartask)
{
*(int*)0x12CC958 = 0x4E800020;
int index = 0;
for (int i = 0; i < 18; i++) {
char *name = (char *)NETWORK::NETWORK_PLAYER_GET_NAME(i);
char buf[100];
snprintf(buf, sizeof(buf), "Clear Task: %s", name);
PRINT(buf, 2000);
index++;
}
}
else
{
*(int*)0x12CC958 = 0x7C0802A6;
}