I got a problem where i want it to use a item, it says that it does (more or less) and it has the right id etc.
if (strcmp(input,"med") == 0)
{
printf("Med Getting used\n");
med=1;
{
int i;
for (i=0;i<6;i++)
{
SendDetour(0x21,"d",-214581447);
}
}
}
So when i type in med it says:
packet type:0x21 format:d
(so far so good, right? and it does it 10 times, like it should)
The problem is, the med just doesnt get used :S
the -214581447 is right, checked it alot of times, diff ways, what am i doing wrong? i assume i totally blew the:
SendDetour(0x21,"d",1,-214581447);
maybe it doesnt target me? or?