17.07.2007, 17:47
Quote:
Originally Posted by courage
i have a question, in your example you showed this:
new resultline[1024]; print("%s", resultline); As we all know that we can do this in PHP: $query = mysql_connect("localhost", "user", "i_dont_have_a_password"); if(!$query) { echo "fail"; } but what about Pawn? new query[1024]; query = samp_mysql_connect("localhost", "user", "i_dont_have_a_password"); if(!query) { print("fail"); } Right? |
PHP code:
Code:
$connection_identifier=mysql_connect(..); //it's the connection identifier to be returned not a query ! if(!connection_identifier) { echo "failure...."; }
Code:
new connection_identifier; connection_identifier=samp_mysql_connect(...); if(connection_identifier==1) { printf("failure"); }