SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 19/01/2020, 03:19 PM   #1
xRadical3
Huge Clucker
 
xRadical3's Avatar
 
Join Date: May 2017
Location: Iran
Posts: 458
Reputation: 17
Default MySQL Query Help

pawn Code:
CountClanMembers(clanid, &dest)
{
    new query[128], Cache:result, rows;
    format(query, sizeof(query), "SELECT COUNT(*) FROM `clans` WHERE `cID` = '%i'", clanid);
    result = mysql_query(1, query); //415
    if(mysql_errno() != 0)
    {
        return printf("Query could not be completed due to error: %s", query);
    }
    cache_get_value_index_int(rows, result, dest); //420
    cache_delete(result);
    return 1;
}
Code:
(415) : warning 213: tag mismatch
(420) : warning 213: tag mismatch
What's problem?
I'm use mysql version R41-4
xRadical3 is offline   Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
top 10 query mysql wallen Scripting Help 9 11/03/2018 06:13 PM
[MySQL R39-3] MySQL losing connection during query MEW273 Scripting Help 2 13/04/2015 08:10 AM
MySQL query only updates first letter of column. (BlueG MySQL) Jimmy0wns Scripting Help 1 06/04/2015 12:04 PM
mysql query David94 Scripting Help 7 29/03/2013 03:59 PM
Failed to exeute query. Lost connection to MySQL server during query. *IsBack Help Archive 10 06/01/2011 08:50 AM


All times are GMT. The time now is 04:22 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.