NULL or not NULL, that is the question
#1

pawn Код:
GetRankName(rank,jobid,i);
        printf("Rank:%s",rank);
        if(isnull(rank)) print("Null"),format(str,sizeof(str),"%d:——\n",i);
        else format(str,sizeof(str),"%d:%s\n",i,rank);
Prints:
pawn Код:
[20:49:49] Rank:NULL
[20:49:49] Rank:NULL
[20:49:49] Rank:NULL
[20:49:49] Rank:NULL
The "print("Null")" is NEVER printed, but it is null... Any help?
Reply


Messages In This Thread
NULL or not NULL, that is the question - by dusk - 17.11.2013, 17:49
Re: NULL or not NULL, that is the question - by SuperViper - 17.11.2013, 18:15
Re: NULL or not NULL, that is the question - by dusk - 17.11.2013, 18:21
Re: NULL or not NULL, that is the question - by SuperViper - 17.11.2013, 20:48
Re: NULL or not NULL, that is the question - by dusk - 18.11.2013, 10:06

Forum Jump:


Users browsing this thread: 1 Guest(s)