25.02.2013, 18:59
Can't connect to host error
#sidenote:
Boolean can have 2 states only: true, or false. So in fact you are doing something like
#sidenote:
pawn Код:
if(mysql_ping()) {
print("Connection to database successful.");
} else if (!mysql_ping()) {
print("Connection to database failed.");
} else {
print("Unknown error!");
}
pawn Код:
if(true) { print("Cool"); }
else if(false) { print("NotCool"); }
else { printf("This will never happen"); }