SqlLite question
#2

you have to use db_num_rows like this:

PHP код:
    new DBResult:CLEAR_RESULT;
    new 
szQuery[128]; 
    
format(szQuerysizeof(szQuery), "SELECT * from `PINCODES` where `PlayerName` = '%s'"DB_Escape(params)); 
    
CLEAR_RESULT db_query(PIN_DATABASEszQuery);
    if(
db_num_rows(CLEAR_RESULT))
    {
        
//it's found
    
}
    else
    {
        
//it's NOT found
    

https://sampwiki.blast.hk/wiki/Db_num_rows
Reply


Messages In This Thread
SqlLite question - by jasperschellekens - 17.02.2018, 14:34
Re: SqlLite question - by Mugala - 17.02.2018, 15:33
Re: SqlLite question - by jasperschellekens - 17.02.2018, 15:49
Re: SqlLite question - by Mugala - 17.02.2018, 15:54

Forum Jump:


Users browsing this thread: 1 Guest(s)