[Unsolved] Weirdest problem I've ever seen..
#1

Since I didn't wanted to bump old topic for the 3rd time, and it was in 5th page already I'm creating a new one.

I'm trying to do Threaded mysql queries (using g-stylezzz plugin) and here's how it goes:
Thread are:
NC_T and L_T
but for some reason L_T doesn't get called:

pawn Код:
public OnQueryFinish(query[], resultid, extraid, connectionHandle)
{
    printf("NC_T %i | L_T %i | Result: %i",NC_T,L_T,resultid);
    if(resultid == NC_T)
    {
        print("NC_T called");
        //This code works, it prints "NC_T 1 | L_T 2 | Result: 1" & "NC_T called" so that's ok
    }
    if(resultid == L_T)
    {
        print("L_T called");
        //This code DOES NOT work, it prints "NC_T 1 | L_T 2 | Result: 2" BUT *NOT* "L_T called"
    }
}
The weirdest thing is that I have
pawn Код:
#define L_T 2
so L_T is 2; and the resultid on OnQueryFinish callback is 2 too.
So why
pawn Код:
if(resultid == L_T)
that would be if(2 == 2)
doesn't work?
Reply
#2

....
Reply
#3

just give a value for resultid. I can't think of other things at this moment
Reply
#4

Fixed. Thanks to myself for help!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)