A not working command
#5

Quote:
Originally Posted by SuperViper
Посмотреть сообщение
That's not how you use threaded queries.

pawn Код:
forward public CallbackName(playerid);

public CallbackName(playerid)
{
    new rowCount, fieldCount;
    cache_get_data(rowCount, fieldCount, IMDb);

    format(string, sizeof(string),"» Total accounts: %i «", rowCount);
    SendClientMessage(playerid, -1, string);
    return 1;
}

mysql_function_query(IMDb, query, true, "CallbackName", "i", playerid);
I can't get why I should use threaded query to count the registered accounts and my problem was that it shows 0 accounts, when they were 285 also when I executed the code in phpmyadmin it showed me 285.
Reply


Messages In This Thread
A not working command - by x96664 - 27.09.2013, 23:23
Re: A not working command - by Ayumi - 27.09.2013, 23:49
Re: A not working command - by x96664 - 27.09.2013, 23:57
Re: A not working command - by SuperViper - 28.09.2013, 00:47
Re: A not working command - by x96664 - 28.09.2013, 10:18
Re: A not working command - by Sweez - 28.09.2013, 15:17
Re: A not working command - by x96664 - 28.09.2013, 15:20
Re: A not working command - by x96664 - 29.09.2013, 11:25
Re: A not working command - by Konstantinos - 29.09.2013, 11:34
Re: A not working command - by x96664 - 29.09.2013, 13:43

Forum Jump:


Users browsing this thread: 2 Guest(s)