MySQL help please :)
#1

Hello,
I started using MySQL plugin (http://forum.sa-mp.com/index.php?topic=79352.0) but I don't know how to print to console all player names?
Here is the code to count all players:
pawn Код:
public OnGameModeInit()
{
    mysql_query("SELECT * FROM `user`",99);
    //...
}

public OnQueryFinish(query[], resultid, extraid, connectionHandle)
{
    new string[128];
    switch(resultid)
    {
        case 99: {
            mysql_store_result();
            printf("Total Members: %i",mysql_num_rows()); // I need to change this line.. but what function to use?
        }
    }
    return 1;
}
Reply
#2

I guess mysql_fetch_int();
Reply
#3

Quote:
Originally Posted by Matthias_
I guess mysql_fetch_int();
isn't ..._int() for integers? :S
Reply
#4

bupt..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)