MySQL, rows checking.
#6

It's not so nessesary, just call a callback with the query execution (use threaded query)
pawn Код:
// Example:
public OnPlayerConnect(playerid)
{
mysql_tquery(1, "SELECT * FROM accounts WHERE name = 'myname'", "LoadPlayerData", "i", playerid);
return 1;
}

forward LoadPlayerData(playerid);

public LoadPlayerData(playerid)
{
//now here you can use cache functions as cache_num_rows(); which means the same thing as mysql_num_rows
return 1;
}
+rep if helped
Reply


Messages In This Thread
MySQL, rows checking. - by Denying - 23.05.2014, 10:45
Re: MySQL, rows checking. - by BroZeus - 23.05.2014, 10:49
Re: MySQL, rows checking. - by Denying - 23.05.2014, 10:50
Re: MySQL, rows checking. - by kamiliuxliuxliux - 23.05.2014, 10:53
Re: MySQL, rows checking. - by Denying - 23.05.2014, 10:55
Re: MySQL, rows checking. - by kamiliuxliuxliux - 23.05.2014, 11:05
Re: MySQL, rows checking. - by Denying - 23.05.2014, 11:10
Re: MySQL, rows checking. - by kamiliuxliuxliux - 23.05.2014, 11:25
Re: MySQL, rows checking. - by Vince - 23.05.2014, 12:19

Forum Jump:


Users browsing this thread: 1 Guest(s)