17.02.2018, 15:33
you have to use db_num_rows like this:
https://sampwiki.blast.hk/wiki/Db_num_rows
PHP код:
new DBResult:CLEAR_RESULT;
new szQuery[128];
format(szQuery, sizeof(szQuery), "SELECT * from `PINCODES` where `PlayerName` = '%s'", DB_Escape(params));
CLEAR_RESULT = db_query(PIN_DATABASE, szQuery);
if(db_num_rows(CLEAR_RESULT))
{
//it's found
}
else
{
//it's NOT found
}