mysql_debug
#1

For some reason I am getting this
pawn Код:
warning 206: redundant test: constant expression is non-zero
warning 215: expression has no effect
When using this in my gamemode
pawn Код:
mysql_debug(1);
But when I check to see if the plugin removed it/changed it it doesn't seem to have changed
https://sampforum.blast.hk/showthread.php?tid=56564
Reply
#2

That warning means that you're quite literally doing something like:
pawn Код:
if(1 == 1)
although it may manifest itself in a way like this:
pawn Код:
#define SOME_STATE 1

if(SOME_STATE == 1)
This is always true ("non-zero") and therefor redundant.

Are you sure that's the line that causes the error? Look at the file name, it may refer to an included file.
Reply
#3

I presume you're using a newer version than R6/5.

Try:

mysql_log.
Reply
#4

Quote:
Originally Posted by DobbysGamertag
Посмотреть сообщение
I presume you're using a newer version than R6/5.

Try:

mysql_log.
Thank you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)