SQLite results question
#1

pawn Код:
CMD:aka(playerid,params[])
{
    new ID,DBResult:Result,Query[250];
    if(sscanf(params,"u",ID)) return SendClientMessage(playerid,-1,"USAGE: /aka [playerid]");
    if(!IsPlayerConnected(ID)) return SendClientMessage(playerid,-1,"ERROR: Player not connected.");
    format(Query,sizeof(Query),"SELECT * FROM `Accounts` WHERE `IP` = '%s'",IP[ID]);
    Result = db_query(DB,Query);
    // How would I get the names?
    db_free_result(Result);
    return 1;
}
how would i get the players names from the result?

thanks in advance.
Reply


Messages In This Thread
SQLite results question - by xXShadowXx - 17.03.2013, 21:04
Re: SQLite results question - by Jefff - 17.03.2013, 21:25
Re: SQLite results question - by Konstantinos - 17.03.2013, 21:32
Re: SQLite results question - by xXShadowXx - 17.03.2013, 21:32

Forum Jump:


Users browsing this thread: 2 Guest(s)